diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index f3ff2e1743..c9fc8d7e8b 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 535a93e34c..6224c15c80 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/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 *