From 42954c1d7286aa81eeabee6208e365e2a5426662 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 12 Jun 2019 10:14:29 +0100 Subject: [PATCH] Server: document the crazy behaviour of some innocent looking functions --- src/pocketmine/Server.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 600eec22d..0d2d56cdf 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -892,6 +892,11 @@ class Server{ } /** + * 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. + * + * @see Server::getPlayerExact() + * * @param string $name * * @return Player|null @@ -917,6 +922,8 @@ class Server{ } /** + * Returns an online player with the given name (case insensitive), or null if not found. + * * @param string $name * * @return Player|null @@ -933,6 +940,9 @@ class Server{ } /** + * Returns a list of online players whose names contain with the given string (case insensitive). + * If an exact match is found, only that match is returned. + * * @param string $partialName * * @return Player[]