From 4030c98c20349e736b643db55599089cca743203 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 03:27:44 +0100 Subject: Added Server.getOperators to return all server operators --- src/main/java/org/bukkit/Bukkit.java | 4 ++++ src/main/java/org/bukkit/Server.java | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index f3ff2e17..c9fc8d7e 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -273,4 +273,8 @@ public final class Bukkit { public static ConsoleCommandSender getConsoleSender() { return server.getConsoleSender(); } + + public static Set getOperators() { + return server.getOperators(); + } } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 535a93e3..6224c15c 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -476,6 +476,13 @@ public interface Server { */ public Set getBannedPlayers(); + /** + * Gets a set containing all player operators + * + * @return Set containing player operators + */ + public Set getOperators(); + /** * Gets the default {@link GameMode} for new players * -- cgit v1.2.3