Added Server.getOperators to return all server operators
This commit is contained in:
parent
2bed49c0fe
commit
4030c98c20
@ -273,4 +273,8 @@ public final class Bukkit {
|
||||
public static ConsoleCommandSender getConsoleSender() {
|
||||
return server.getConsoleSender();
|
||||
}
|
||||
|
||||
public static Set<OfflinePlayer> getOperators() {
|
||||
return server.getOperators();
|
||||
}
|
||||
}
|
||||
|
@ -476,6 +476,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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user