Add in some final touches
This commit is contained in:
parent
0181ea4cf8
commit
ca57807ccb
1 changed files with 10 additions and 1 deletions
|
@ -124,7 +124,8 @@ class StateMachine {
|
|||
"-RconPort=${settings.inst!.serverSettings.RconPort}",
|
||||
"-Port=${settings.inst!.serverSettings.GamePort}",
|
||||
"-QueryPort=${settings.inst!.serverSettings.QueryPort}",
|
||||
"-log"
|
||||
"-log",
|
||||
"-console"
|
||||
];
|
||||
// Start the server now
|
||||
if (Platform.isWindows) {
|
||||
|
@ -182,6 +183,10 @@ class StateMachine {
|
|||
if (settings.inst!.pterodactylMode) {
|
||||
// Shut down the server processes now
|
||||
PacketServer.socket!.close();
|
||||
} else {
|
||||
resetKillswitch();
|
||||
SessionData.timer = settings.inst!.timer.time.copy();
|
||||
changeState(States.PreStart);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -206,6 +211,10 @@ class StateMachine {
|
|||
|
||||
if (send) {
|
||||
// Send the alert message
|
||||
SessionData.CURRENT_INTERVAL = current;
|
||||
if (current.type == WarnType.Intrusive) {
|
||||
settings.sendRconCommand("broadcast ${current.warning}");
|
||||
}
|
||||
}
|
||||
|
||||
// Check Shutdown Pending
|
||||
|
|
Loading…
Reference in a new issue