diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-12-04 17:56:41 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-12-04 17:56:41 +0000 |
commit | d2a7e4701b4efed34df4660daa8458aabbee332c (patch) | |
tree | 0e913f8ed262d3fef81e808b63de9d51872b675a /src/main/java/org | |
parent | 8d55e127bce2e1d65063d17689ed8fb127febade (diff) | |
download | bukkit-d2a7e4701b4efed34df4660daa8458aabbee332c.tar bukkit-d2a7e4701b4efed34df4660daa8458aabbee332c.tar.gz bukkit-d2a7e4701b4efed34df4660daa8458aabbee332c.tar.lz bukkit-d2a7e4701b4efed34df4660daa8458aabbee332c.tar.xz bukkit-d2a7e4701b4efed34df4660daa8458aabbee332c.zip |
Added method to retrieve all players on a server, online or offline
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index dc9ce803..26459cea 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -518,4 +518,11 @@ public interface Server { * @return World container folder */ public File getWorldContainer(); + + /** + * Gets every player that has ever played on this server. + * + * @return Array containing all players + */ + public OfflinePlayer[] getOfflinePlayers(); } |