From b3bda788d966603db658950ea442d997403c2720 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 14 Oct 2022 21:45:09 +0100 Subject: [PATCH] Server: Deprecated getPlayerByPrefix() this is only used for commands anyway, but we can't get rid of it yet. --- src/Server.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Server.php b/src/Server.php index 2c3f5b85d..34de10b9e 100644 --- a/src/Server.php +++ b/src/Server.php @@ -609,6 +609,10 @@ 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. + * * 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. *