Even simpler.

This commit is contained in:
GJ 2013-03-27 15:56:03 -04:00
parent 6fbfec48b0
commit 7d8888d47d

View File

@ -26,8 +26,7 @@ public class PartyAutoKickTask extends BukkitRunnable {
for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) { for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
Party party = partyIterator.next(); Party party = partyIterator.next();
for (Iterator<OfflinePlayer> memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) { for (OfflinePlayer member : party.getMembers()) {
OfflinePlayer member = memberIterator.next();
if (currentTime - member.getLastPlayed() > kickTime) { if (currentTime - member.getLastPlayed() > kickTime) {
toRemove.put(member, party); toRemove.put(member, party);
} }