Server: removed reference to nonexistent API method

This commit is contained in:
Dylan K. Taylor 2022-10-15 15:06:43 +01:00
parent 7bcc663b60
commit b74c092d9b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -610,8 +610,8 @@ class Server{
/**
* @deprecated This method's results are unpredictable. The string "Steve" will return the player named "SteveJobs",
* until another player named "Steve" joins the server, at which point it will return that player instead. Use
* {@link Server::getPlayersByPrefix()} instead.
* until another player named "SteveJ" joins the server, at which point it will return that player instead. Prefer
* filtering the results of {@link Server::getOnlinePlayers()} yourself.
*
* Returns an online player whose name begins with or equals the given string (case insensitive).
* The closest match will be returned, or null if there are no online matches.