diff options
Diffstat (limited to 'src/main/java')
-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 |