kick players before shutting down

This commit is contained in:
Maverick Motherfucker 2011-06-05 13:23:32 -07:00
parent 49c9254569
commit 6fdb7e028c

View file

@ -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;
}