diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 016c3025..fb5efffa 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -35,7 +35,7 @@ public class ServerConfigurationManager { public int maxPlayers; // CraftBukkit - private -> public public Set banByName = new HashSet(); // CraftBukkit - private -> public public Set banByIP = new HashSet(); // CraftBukkit - private -> public - private Set operators = new HashSet(); + public Set operators = new HashSet(); // CraftBukkit - private -> public private Set whitelist = new HashSet(); private File j; private File k; diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 84275c01..8bb53fc3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -26,7 +26,6 @@ import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.util.Random; import java.util.UUID; import java.util.Set; import java.util.logging.Level; @@ -836,6 +835,16 @@ public final class CraftServer implements Server { return result; } + public Set<OfflinePlayer> getOperators() { + Set<OfflinePlayer> result = new HashSet<OfflinePlayer>(); + + for (Object name : server.operators) { + result.add(getOfflinePlayer((String)name)); + } + + return result; + } + public void reloadWhitelist() { server.reloadWhitelist(); } |