@Override public Set<org.bukkit.BanEntry> getBanEntries() { ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder(); for (UserListEntry entry : list.getValues()) { GameProfile profile = (GameProfile) entry.func_152640_f(); // Should be getKey builder.add(new CraftProfileBanEntry(profile, (UserListBansEntry) entry, list)); } return builder.build(); }
@Override public Set<OfflinePlayer> getBannedPlayers() { Set<OfflinePlayer> result = new HashSet<OfflinePlayer>(); for (UserListEntry entry : playerList.func_152608_h().getValues()) { result.add(getOfflinePlayer((GameProfile) entry.func_152640_f())); // Should be getKey } return result; }
@Override public Set<OfflinePlayer> getWhitelistedPlayers() { Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>(); for (UserListEntry entry : playerList.func_152599_k().getValues()) { result.add(getOfflinePlayer((GameProfile) entry.func_152640_f())); // Should be getKey } return result; }
@Override public Set<OfflinePlayer> getOperators() { Set<OfflinePlayer> result = new HashSet<OfflinePlayer>(); for (UserListEntry entry : playerList.func_152603_m().getValues()) { result.add(getOfflinePlayer((GameProfile) entry.func_152640_f())); // Should be getKey } return result; }