Fixed /off, it now saves the world.
Added /off-nosave, it doesn't. Raised threshold to 20. Closes #8 Closes #6 Closes #5
This commit is contained in:
parent
fc4435e5f2
commit
aefde30a8d
2 changed files with 8 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ namespace TShockAPI
|
|||
TShock.admincommandList.Add("kill", new CommandDelegate(Kill));
|
||||
TShock.admincommandList.Add("help", new CommandDelegate(Help));
|
||||
TShock.admincommandList.Add("slap", new CommandDelegate(Slap));
|
||||
TShock.admincommandList.Add("off-nosave", new CommandDelegate(OffNoSave));
|
||||
TShock.commandList.Add("help", new CommandDelegate(Help));
|
||||
TShock.commandList.Add("kill", new CommandDelegate(Kill));
|
||||
}
|
||||
|
|
@ -96,6 +97,12 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
public static void Off(CommandArgs args)
|
||||
{
|
||||
WorldGen.saveWorld();
|
||||
Netplay.disconnect = true;
|
||||
}
|
||||
|
||||
public static void OffNoSave(CommandArgs args)
|
||||
{
|
||||
Netplay.disconnect = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue