Merge branch 'next-minor' into next-major

This commit is contained in:
Dylan K. Taylor
2022-10-16 16:58:50 +01:00
5 changed files with 164 additions and 48 deletions

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.