kick players before shutting down
This commit is contained in:
parent
49c9254569
commit
6fdb7e028c
1 changed files with 4 additions and 0 deletions
|
|
@ -191,6 +191,10 @@ namespace TShockAPI
|
|||
|
||||
public static void Off(CommandArgs args)
|
||||
{
|
||||
for (int player = 0; player < Main.maxPlayers; player++)
|
||||
{
|
||||
Tools.Kick(player, "server shutting down");
|
||||
}
|
||||
WorldGen.saveWorld();
|
||||
Netplay.disconnect = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue