Remove TSPlayer.KickAll

" Ivan - Today at 6:20 PM
@ ハクサロ wouldnt TSPlayer.All.Kick() do the trick?"
This commit is contained in:
Lucas Nicodemus 2017-12-27 18:20:47 -07:00
parent 8301d6a6f3
commit fc689dbbc5
2 changed files with 0 additions and 17 deletions

View file

@ -110,22 +110,6 @@ namespace TShockAPI
return found;
}
/// <summary>
/// Disconnects all players from the server without checking for immunetokick permission.
/// </summary>
/// <param name="force">If the kick should bypass permission checks.</param>
/// <param name="reason">The reason for the kick.</param>
public static void KickAll(bool force, string reason)
{
foreach (TSPlayer player in TShock.Players)
{
if (player != null && player.Active)
{
player.Kick(reason, force, true, null, true);
}
}
}
/// <summary>
/// The amount of tiles that the player has killed in the last second.
/// </summary>