mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
Implemented new ban and unban methods
This commit is contained in:
@@ -829,4 +829,14 @@ public final class CraftServer implements Server {
|
||||
public void unbanIP(String address) {
|
||||
server.d(address);
|
||||
}
|
||||
|
||||
public Set<OfflinePlayer> getBannedPlayers() {
|
||||
Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();
|
||||
|
||||
for (Object name : server.banByName) {
|
||||
result.add(getOfflinePlayer((String)name));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user