diff --git a/CHANGELOG.md b/CHANGELOG.md index a9dd9d55..e9a0ab61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,7 +68,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Removed _all obsolete methods in TShock marked obsolete prior to this version (all of them)_ (@hakusaro). * Removed broken noclip detection and attempted prevention. TShock wasn't doing a good job at stopping noclip. It's always worse to claim that you do something that you can't/don't do, so removing this is better than keeping broken detection in. (@hakusaro) * Replaced `Utils.FindPlayer` with `TSPlayer.FindByNameOrID` to more appropriately be object orientated. (@hakusaro) -* Removed `Utils.ActivePlayers()` -- use `TSPlayer.ActivePlayers.Count` instead. (@hakusaro) +* 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) * Removed `Utils.GetPlayerIP()`. (@hakusaro) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 2b51ddd0..c71141e7 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -74,18 +74,6 @@ namespace TShockAPI /// public static readonly TSPlayer All = new TSPlayer("All"); - /// - /// Gets the number of active players on the server. - /// - /// The number of active players on the server. - public static ICollection ActivePlayers - { - get - { - return TShock.Players.Where(p => null != p && p.TPlayer.active) as ICollection; - } - } - /// /// Finds a TSPlayer based on name or ID ///