Added ForceKillAll to kick all players.
This commit is contained in:
parent
3af6e990dc
commit
3ced4fc089
3 changed files with 19 additions and 21 deletions
|
|
@ -231,13 +231,7 @@ namespace TShockAPI
|
|||
}
|
||||
if (text.StartsWith("exit"))
|
||||
{
|
||||
for (int player = 0; player < Main.maxPlayers; player++)
|
||||
{
|
||||
if (Main.player[player].active)
|
||||
{
|
||||
Tools.ForceKick(player, "Server shutting down!");
|
||||
}
|
||||
}
|
||||
Tools.ForceKickAll("Server shutting down!");
|
||||
}
|
||||
if (text.StartsWith("playing"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue