diff --git a/src/main/java/com/gmail/nossr50/party/runnables/PartyAutoKick.java b/src/main/java/com/gmail/nossr50/party/runnables/PartyAutoKick.java index 691b85922..5b64fc61e 100644 --- a/src/main/java/com/gmail/nossr50/party/runnables/PartyAutoKick.java +++ b/src/main/java/com/gmail/nossr50/party/runnables/PartyAutoKick.java @@ -18,7 +18,9 @@ public class PartyAutoKick implements Runnable { long currentTime = System.currentTimeMillis(); long kickTime = 24L * 60L * 60L * 1000L * Config.getInstance().getAutoPartyKickTime(); - for (Party party : PartyManager.getParties()) { + for (Iterator partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) { + Party party = partyIterator.next(); + for (Iterator memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) { OfflinePlayer member = memberIterator.next();