From a5a3aae59953883299e03ba7a215402d48c69f53 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 27 Dec 2017 19:29:01 -0700 Subject: [PATCH] Remove Utils.GetPlayerIP() --- CHANGELOG.md | 1 + TShockAPI/Utils.cs | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0e08b08..99fb71bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,7 @@ 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) +* removed `Utils.GetPlayerIP()`. (@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. diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index f6af228d..642c109c 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -96,25 +96,6 @@ namespace TShockAPI return players; } - /// - /// Finds a player and gets IP as string - /// - /// string playername - public string GetPlayerIP(string playername) - { - foreach (TSPlayer player in TShock.Players) - { - if (player != null && player.Active) - { - if (playername.ToLower() == player.Name.ToLower()) - { - return player.IP; - } - } - } - return null; - } - /// /// It's a clamp function ///