API Class: Tools.GetPlayerByName() - SignatureBeef/Terraria-s-Dedicated-Server-Mod GitHub Wiki
Summary
Returns a Player object of the player matching the specified name.
Arguments
Player GetPlayerByName(string name)
Example(s)
Lua
Finds the player by the text specified in args.Text and then displays the player's name in console. Note: The name must match exactly, but case does not matter.
plr = Tools.GetPlayerByName(args.Text)
Tools.WriteLine(plr.name)