mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Even simpler.
This commit is contained in:
parent
6fbfec48b0
commit
7d8888d47d
@ -26,8 +26,7 @@ public class PartyAutoKickTask extends BukkitRunnable {
|
||||
for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
|
||||
Party party = partyIterator.next();
|
||||
|
||||
for (Iterator<OfflinePlayer> memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) {
|
||||
OfflinePlayer member = memberIterator.next();
|
||||
for (OfflinePlayer member : party.getMembers()) {
|
||||
if (currentTime - member.getLastPlayed() > kickTime) {
|
||||
toRemove.put(member, party);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user