mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Broadcast Message Changes
1. Added config option for auto processes to use broadcast keyword 2. Added config to global settings
This commit is contained in:
parent
220b3d9c77
commit
fc658b04dd
22 changed files with 196 additions and 55 deletions
|
|
@ -441,7 +441,7 @@ namespace ServerManagerTool
|
|||
execute: (_) =>
|
||||
{
|
||||
var message = _globalizer.GetResourceString("RCON_SaveWorldLabel");
|
||||
this.ServerRCON.IssueCommand($"{ServerRCON.RCON_COMMAND_BROADCAST} {message}");
|
||||
this.ServerRCON.IssueCommand($"{Config.Default.RCON_MessageCommand.ToLower()} {message}");
|
||||
|
||||
this.ServerRCON.IssueCommand(Config.Default.ServerSaveCommand);
|
||||
},
|
||||
|
|
@ -458,7 +458,7 @@ namespace ServerManagerTool
|
|||
execute: (_) =>
|
||||
{
|
||||
var message = _globalizer.GetResourceString("RCON_DestroyWildDinosLabel");
|
||||
this.ServerRCON.IssueCommand($"{ServerRCON.RCON_COMMAND_BROADCAST} {message}");
|
||||
this.ServerRCON.IssueCommand($"{Config.Default.RCON_MessageCommand.ToLower()} {message}");
|
||||
|
||||
this.ServerRCON.IssueCommand(ServerRCON.RCON_COMMAND_WILDDINOWIPE);
|
||||
},
|
||||
|
|
@ -801,6 +801,10 @@ namespace ServerManagerTool
|
|||
|
||||
switch (effectiveMode)
|
||||
{
|
||||
case InputMode.Command:
|
||||
this.ServerRCON.IssueCommand(commandText);
|
||||
break;
|
||||
|
||||
case InputMode.Broadcast:
|
||||
this.ServerRCON.IssueCommand($"{ServerRCON.RCON_COMMAND_BROADCAST} {commandText}");
|
||||
break;
|
||||
|
|
@ -815,16 +819,6 @@ namespace ServerManagerTool
|
|||
this.ServerRCON.IssueCommand($"{ServerRCON.RCON_COMMAND_SERVERCHAT} {commandText}");
|
||||
}
|
||||
break;
|
||||
|
||||
case InputMode.Command:
|
||||
this.ServerRCON.IssueCommand(commandText);
|
||||
break;
|
||||
|
||||
#if false
|
||||
case InputMode.Chat:
|
||||
this.ServerRCON.IssueCommand(textBox.Text);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue