Implemented new ban and unban methods

This commit is contained in:
Dinnerbone
2011-09-03 02:13:07 +01:00
parent 598be22800
commit 09d90e639b
4 changed files with 38 additions and 4 deletions

View File

@@ -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;
}
}