Remove TSPlayer.KickAll
"☕⚡ Ivan - Today at 6:20 PM @☕⚡ ハクサロ wouldnt TSPlayer.All.Kick() do the trick?"
This commit is contained in:
parent
8301d6a6f3
commit
fc689dbbc5
2 changed files with 0 additions and 17 deletions
|
|
@ -69,7 +69,6 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* Removed `Utils.ActivePlayers()` -- use `TShock.Players.Length` instead. (@hakusaro)
|
||||
* Moved `Utils.Kick()` to `TSPlayer` since its first argument was a `TSPlayer` object. (@hakusaro)
|
||||
* Removed `Utils.ForceKick()`. (@hakusaro)
|
||||
* Replaced `Utils.ForceKickAll()` with `TSPlayer.KickAll`. (@hakusaro)
|
||||
|
||||
## TShock 4.3.25
|
||||
* Fixed a critical exploit in the Terraria protocol that could cause massive unpreventable world corruption as well as a number of other problems. Thanks to @bartico6 for reporting. Fixed by the efforts of @QuiCM, @hakusaro, and tips in the right directioon from @bartico6.
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue