Fixed /off

This commit is contained in:
Maverick Motherfucker 2011-06-05 15:48:22 -07:00
parent 26a4a299f3
commit 0b637c1481

View file

@ -194,7 +194,10 @@ namespace TShockAPI
{
for (int player = 0; player < Main.maxPlayers; player++)
{
Tools.Kick(player, "server shutting down");
if (Main.player[player].active)
{
Tools.Kick(player, "Server shutting down!");
}
}
WorldGen.saveWorld();
Netplay.disconnect = true;