summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 03:28:00 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 03:28:00 +0100
commitceba082703ffaf2371caedc0e8e1d7c1a3c3e39d (patch)
tree785b606cac8e21da340df62eddfbf9efb1a16a84 /src/main/java/org/bukkit
parentcb49379b2426df71611cb85da384a5930caca208 (diff)
downloadcraftbukkit-ceba082703ffaf2371caedc0e8e1d7c1a3c3e39d.tar
craftbukkit-ceba082703ffaf2371caedc0e8e1d7c1a3c3e39d.tar.gz
craftbukkit-ceba082703ffaf2371caedc0e8e1d7c1a3c3e39d.tar.lz
craftbukkit-ceba082703ffaf2371caedc0e8e1d7c1a3c3e39d.tar.xz
craftbukkit-ceba082703ffaf2371caedc0e8e1d7c1a3c3e39d.zip
Implemented getOperators
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java11
1 files changed, 10 insertions, 1 deletions
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();
}