diff --git a/src/main/java/de/erethon/dungeonsxl/game/Game.java b/src/main/java/de/erethon/dungeonsxl/game/Game.java index 9a873516..0fc1a6f5 100644 --- a/src/main/java/de/erethon/dungeonsxl/game/Game.java +++ b/src/main/java/de/erethon/dungeonsxl/game/Game.java @@ -423,6 +423,10 @@ public class Game { }.runTaskLater(plugin, delay * 20); } + public boolean isFinished() { + return dGroups.stream().allMatch(DGroup::isFinished); + } + /** * @param message the message to send */