-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add restart command - Fix typo - Better handeling of default config on linux with out messing around with scp_multiadmin.cfg txt - Automaticaly fix typo in scp_multiadmin.cfg text name - Add message when using stop next round
- Loading branch information
1 parent
60b010a
commit 43c7a97
Showing
6 changed files
with
111 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MultiAdmin.MultiAdmin.Features | ||
{ | ||
class Restart : Feature, ICommand | ||
{ | ||
public Restart(Server server) : base(server) | ||
{ | ||
} | ||
|
||
public string GetCommand() | ||
{ | ||
return "restart"; | ||
} | ||
|
||
public string GetCommandDescription() | ||
{ | ||
return "Restarts the game server (multiadmin will not restart, just the game)"; | ||
} | ||
|
||
public override string GetFeatureDescription() | ||
{ | ||
return "Allows the game to be restarted without restarting multiadmin"; | ||
} | ||
|
||
public override string GetFeatureName() | ||
{ | ||
return "Restart command"; | ||
} | ||
|
||
public string GetUsage() | ||
{ | ||
return ""; | ||
} | ||
|
||
public override void Init() | ||
{ | ||
} | ||
|
||
public void OnCall(string[] args) | ||
{ | ||
this.Server.SoftRestartServer(); | ||
} | ||
|
||
public override void OnConfigReload() | ||
{ | ||
} | ||
|
||
public bool PassToGame() | ||
{ | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters