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