diff --git a/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java b/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java index 8bb1d78f8..0b7547f84 100644 --- a/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java @@ -26,8 +26,7 @@ public class PartyAutoKickTask extends BukkitRunnable { for (Iterator partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) { Party party = partyIterator.next(); - for (Iterator memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) { - OfflinePlayer member = memberIterator.next(); + for (OfflinePlayer member : party.getMembers()) { if (currentTime - member.getLastPlayed() > kickTime) { toRemove.put(member, party); }