mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Rcon Command Changes
- moved the rcon commands to the gamedata files, so they can be extended.
This commit is contained in:
parent
f3ff807cd0
commit
e7100e6323
18 changed files with 266 additions and 152 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue