mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 05:31:32 +01:00
Added Server.getOperators to return all server operators
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
4d1700d1d9
commit
0d3e401580
2 changed files with 11 additions and 0 deletions
|
@ -273,4 +273,8 @@ public final class Bukkit {
|
||||||
public static ConsoleCommandSender getConsoleSender() {
|
public static ConsoleCommandSender getConsoleSender() {
|
||||||
return server.getConsoleSender();
|
return server.getConsoleSender();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Set<OfflinePlayer> getOperators() {
|
||||||
|
return server.getOperators();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -476,6 +476,13 @@ public interface Server {
|
||||||
*/
|
*/
|
||||||
public Set<OfflinePlayer> getBannedPlayers();
|
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
|
* Gets the default {@link GameMode} for new players
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue