From 894218cac94dc45c4fc5565eb31c7b248b0ce951 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 15 Feb 2013 07:44:27 -0500 Subject: [PATCH] Gotta protect this one too. --- .../java/com/gmail/nossr50/party/runnables/PartyAutoKick.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();