SHOW:
|
|
- or go back to the newest paste.
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; |
10 | + | iter.remove(); |
11 | } else { | |
12 | - | if (player.getLastPlayed() < cutoff) { |
12 | + | if (player.getLastPlayed() < cutoff) { |
13 | - | continue; |
13 | + | // Keep in list |
14 | } else { | |
15 | - | iter.remove(); continue; |
15 | + | iter.remove(); |
16 | } | |
17 | } | |
18 | } | |
19 | return result; | |
20 | } |