Advertisement
riking

Untitled

May 25th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  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(); continue;
  11.             }
  12.             if (player.getLastPlayed() < cutoff) {
  13.                 continue;
  14.             } else {
  15.                 iter.remove(); continue;
  16.             }
  17.         }
  18.         return result;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement