예제 #1
0
 public List<String> getWhitelist() throws APIException {
   List<String> a = new ArrayList<String>();
   for (OfflinePlayer p : Server.getWhitelistedPlayers()) {
     a.add(p.getName());
   }
   return a;
 }
예제 #2
0
 @Override
 public Set<OfflinePlayer> getWhitelistedPlayers() {
   return server.getWhitelistedPlayers();
 }