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[]