Merge branch 'stable' of https://github.com/pmmp/PocketMine-MP into stable

This commit is contained in:
Dylan K. Taylor 2019-06-13 16:05:18 +01:00
commit 3568c7b1c7

View File

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