Exemplo n.º 1
0
 public Set<OfflinePlayer> getOperators() {
   Set<OfflinePlayer> offlinePlayers = new HashSet<OfflinePlayer>();
   for (String name : opsList.getContents()) {
     offlinePlayers.add(getOfflinePlayer(name));
   }
   return offlinePlayers;
 }
Exemplo n.º 2
0
 public Set<OfflinePlayer> getWhitelistedPlayers() {
   Set<OfflinePlayer> players = new HashSet<OfflinePlayer>();
   for (String name : whitelist.getContents()) {
     players.add(getOfflinePlayer(name));
   }
   return players;
 }