Added getPlayer(String name) to Server
This commit is contained in:
parent
f4fa9c6e00
commit
675dab41c2
@ -28,6 +28,16 @@ public interface Server {
|
|||||||
*/
|
*/
|
||||||
public Player[] getOnlinePlayers();
|
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
|
* Gets the PluginManager for interfacing with plugins
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user