Adds a --no-restart command-line argument for Multiplay

This commit is contained in:
White 2016-04-27 15:12:43 +09:30
parent c4b7ee551c
commit 91c41aa68b
2 changed files with 16 additions and 0 deletions

View file

@ -1743,6 +1743,12 @@ namespace TShockAPI
private static void Restart(CommandArgs args)
{
if (TShock.NoRestart)
{
args.Player.SendErrorMessage("This command has been disabled.");
return;
}
if (ServerApi.RunningMono)
{
TShock.Log.ConsoleInfo("Sorry, this command has not yet been implemented in Mono.");