mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Server: Deprecated getPlayerByPrefix()
this is only used for commands anyway, but we can't get rid of it yet.
This commit is contained in:
parent
2cc8a56e68
commit
b3bda788d9
@ -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).
|
* 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.
|
* The closest match will be returned, or null if there are no online matches.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user