diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 03:27:44 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 03:27:44 +0100 |
commit | 4030c98c20349e736b643db55599089cca743203 (patch) | |
tree | 8bbc1779213790c270bffc8677170febae583b19 /src/main/java/org | |
parent | 2bed49c0fe15a61592742eb5c8ec58c893d23e9a (diff) | |
download | bukkit-4030c98c20349e736b643db55599089cca743203.tar bukkit-4030c98c20349e736b643db55599089cca743203.tar.gz bukkit-4030c98c20349e736b643db55599089cca743203.tar.lz bukkit-4030c98c20349e736b643db55599089cca743203.tar.xz bukkit-4030c98c20349e736b643db55599089cca743203.zip |
Added Server.getOperators to return all server operators
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/Bukkit.java | 4 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 7 |
2 files changed, 11 insertions, 0 deletions
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<OfflinePlayer> 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 @@ -477,6 +477,13 @@ public interface Server { public Set<OfflinePlayer> getBannedPlayers(); /** + * Gets a set containing all player operators + * + * @return Set containing player operators + */ + public Set<OfflinePlayer> getOperators(); + + /** * Gets the default {@link GameMode} for new players * * @return Default game mode |