From 56b92a4f4566f2ccd90a06c6d3ab675a0dc9bc00 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 4 Dec 2011 17:56:41 +0000 Subject: [PATCH] Added method to retrieve all players on a server, online or offline By: Nathan Adams --- paper-api/src/main/java/org/bukkit/Server.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index dc9ce803f3..26459ceac3 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/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(); }