Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Set<String> call() throws Exception {
- HashSet<String> result = new HashSet<String>(parameter);
- Iterator<String> iter = result.iterator();
- while (iter.hasNext()) {
- String p = iter.next();
- OfflinePlayer player = server.getOfflinePlayer(p);
- if (player.isOnline()) {
- iter.remove(); continue;
- }
- if (player.getLastPlayed() < cutoff) {
- continue;
- } else {
- iter.remove(); continue;
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement