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:
parent
830b1634f2
commit
11920cde48
5 changed files with 63 additions and 60 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue