API Class: Tools - SignatureBeef/Terraria-s-Dedicated-Server-Mod GitHub Wiki
The API class Tools
contains generic functions you will use inside your plugin. For example it contains the common ProgramLog.Log() method and even functions for finding players.
Namespace location: TDSM.API
Functions
- ActiveNPCCount()
- FindPlayerByPart(string partName, bool ignoreCase = true)
- GetPlayerByName(string name)
- IsNPCSummoned(int type)
- IsNPCSummoned(string name)
- IsValidLocation(Vector2 point, bool defaultResist = true)
- NotifyAllOps(string message, bool writeToConsole = true)
- NotifyAllPlayers(string message, Color color, bool writeToConsole = true)
- SetWriteLineMethod(Action<String, Object[]> method)
- TryFindNPCByName(string name, out int id)
- TryGetFirstOnlinePlayer(out Player player)