Rcon Command Changes

- moved the rcon commands to the gamedata files, so they can be extended.
This commit is contained in:
Brett Hewitson 2022-06-14 12:55:58 +10:00
parent f3ff807cd0
commit e7100e6323
18 changed files with 266 additions and 152 deletions

View file

@ -2306,17 +2306,7 @@ namespace ServerManagerTool.Lib
private static string GetRconMessageCommand(string commandValue)
{
switch (commandValue.ToLower())
{
case "alert":
return ServerRcon.RCON_COMMAND_ALERT;
case "server":
return ServerRcon.RCON_COMMAND_SERVER;
default:
return ServerRcon.RCON_COMMAND_BROADCAST;
}
return commandValue.ToLower();
}
public static string GetServerBackupFolder(ServerProfile profile)