From 738d472b43d634a73575bff5510d70f4229a0ad8 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sun, 25 Apr 2021 14:02:18 +0200 Subject: [PATCH] Set group to be "playing" whenever they are in a dungeon --- .../main/java/de/erethon/dungeonsxl/player/DGroup.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java index d6b0355b..9d1f3822 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java @@ -75,7 +75,6 @@ public class DGroup implements PlayerGroup { private PlayerCollection invitedPlayers = new PlayerCollection(); private Dungeon dungeon; private Game game; - private boolean playing; private List rewards = new ArrayList<>(); private BukkitTask timeIsRunningTask; private Color color; @@ -100,7 +99,6 @@ public class DGroup implements PlayerGroup { group.name = name + "#" + group.id; group.color = color; group.dungeon = dungeon; - group.playing = false; group.addMember(leader); group.setLeader(leader); @@ -340,11 +338,7 @@ public class DGroup implements PlayerGroup { @Override public boolean isPlaying() { - return playing; - } - - public void setPlaying(boolean playing) { - this.playing = playing; + return game != null; } @Override @@ -589,7 +583,6 @@ public class DGroup implements PlayerGroup { return false; } - playing = true; plugin.getGlobalProtectionCache().updateGroupSigns(this); GameRuleContainer rules = getDungeon().getRules();