Advertisement
riking

Untitled

May 25th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @Override
  2.     public Set<String> call() throws Exception {
  3.         HashSet<String> result = new HashSet<String>(parameter);
  4.         Iterator<String> iter = result.iterator();
  5.         while (iter.hasNext()) {
  6.             String p = iter.next();
  7.             OfflinePlayer player = server.getOfflinePlayer(p);
  8.  
  9.             if (player.isOnline()) {
  10.                 iter.remove();
  11.             } else {
  12.                 if (player.getLastPlayed() < cutoff) {
  13.                     // Keep in list
  14.                 } else {
  15.                     iter.remove();
  16.                 }
  17.             }
  18.         }
  19.         return result;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement