Implemented getOperators

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-09-25 03:28:00 +01:00
parent a013800772
commit 36b341bfc8

View File

@ -26,7 +26,6 @@ import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;
import java.util.Set;
import java.util.logging.Level;
@ -836,6 +835,16 @@ public final class CraftServer implements Server {
return result;
}
public Set<OfflinePlayer> getOperators() {
Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();
for (Object name : server.operators) {
result.add(getOfflinePlayer((String)name));
}
return result;
}
public void reloadWhitelist() {
server.reloadWhitelist();
}