mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Added getPlayer(String name) to Server
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
3dc584d5b8
commit
f6873cab82
1 changed files with 10 additions and 0 deletions
|
@ -28,6 +28,16 @@ public interface Server {
|
|||
*/
|
||||
public Player[] getOnlinePlayers();
|
||||
|
||||
/**
|
||||
* Gets a player object by the given username
|
||||
*
|
||||
* This method may not return objects for offline players
|
||||
*
|
||||
* @param name Name to look up
|
||||
* @return Player if it was found, otherwise null
|
||||
*/
|
||||
public Player getPlayer(String name);
|
||||
|
||||
/**
|
||||
* Gets the PluginManager for interfacing with plugins
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue