Adds a --no-restart command-line argument for Multiplay
This commit is contained in:
parent
c4b7ee551c
commit
91c41aa68b
2 changed files with 16 additions and 0 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue