diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-03 00:20:09 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-03 00:20:09 +0000 |
commit | 675dab41c2babcef2d3fb5c6f8c6813951014384 (patch) | |
tree | 012bfae15c714390149cf99a42b35a8eaa9e427c /src | |
parent | f4fa9c6e00028026da19263635085d0c5d880f01 (diff) | |
download | bukkit-675dab41c2babcef2d3fb5c6f8c6813951014384.tar bukkit-675dab41c2babcef2d3fb5c6f8c6813951014384.tar.gz bukkit-675dab41c2babcef2d3fb5c6f8c6813951014384.tar.lz bukkit-675dab41c2babcef2d3fb5c6f8c6813951014384.tar.xz bukkit-675dab41c2babcef2d3fb5c6f8c6813951014384.zip |
Added getPlayer(String name) to Server
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 1019423f..503901cd 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -29,6 +29,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 * * @return PluginManager for this Server instance |