diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 7e59e830..dd99422e 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -77,8 +77,6 @@ namespace TShockAPI /// public static event Action Initialized; - public static List TakenPlayerIDs = new List(); - public override Version Version { get { return VersionNum; } diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index 4a817afd..7f758935 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -27,11 +27,22 @@ using Terraria; namespace TShockAPI { + /// + /// Utilities and other TShock core calls that don't fit anywhere else + /// public class Utils { - private readonly static int firstItemPrefix = 1; - private readonly static int lastItemPrefix = 83; - // Utils is a Singleton + /// + /// Document me + /// + private const int firstItemPrefix = 1; + + /// + /// Document me + /// + private const int lastItemPrefix = 83; + + // Utils is a Singleton private static readonly Utils instance = new Utils(); private Utils() {} public static Utils Instance { get { return instance; } } @@ -96,7 +107,7 @@ namespace TShockAPI /// /// Finds a player and gets IP as string /// - /// Player name + /// string playername public string GetPlayerIP(string playername) { foreach (TSPlayer player in TShock.Players) @@ -210,7 +221,9 @@ namespace TShockAPI return new List { player }; } } +// ReSharper disable EmptyGeneralCatchClause catch (Exception e) +// ReSharper restore EmptyGeneralCatchClause { // Conversion failed }