mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Merge branch 'stable' of https://github.com/pmmp/PocketMine-MP into stable
This commit is contained in:
commit
3568c7b1c7
@ -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
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return Player|null
|
* @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
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return Player|null
|
* @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
|
* @param string $partialName
|
||||||
*
|
*
|
||||||
* @return Player[]
|
* @return Player[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user