diff --git a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java index 2da4cee..f8b6c44 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java @@ -642,10 +642,12 @@ public class ArenaImpl implements Arena @Override public void forceEnd() { - for (Player p : getAllPlayers()) { - playerLeave(p); + List players = getAllPlayers(); + if (players.isEmpty()) { + return; } + players.forEach(this::playerLeave); cleanup(); }