Move Utils.FindPlayer -> TSPlayer.FindByNameOrID.

This makes TShock more OOP like (get the matching players from the
player as opposed to getting the players from a random class that
shouldn't exist).
This commit is contained in:
Lucas Nicodemus 2017-12-26 20:53:00 -07:00
parent 830b1634f2
commit 11920cde48
5 changed files with 63 additions and 60 deletions

View file

@ -1244,7 +1244,7 @@ namespace TShockAPI
if (string.IsNullOrWhiteSpace(name))
return RestMissingParam("player");
var found = TShock.Utils.FindPlayer(name);
var found = TSPlayer.FindByNameOrID(name);
switch(found.Count)
{
case 1: