From 1e9b5ead353dc73d21a543fb4e67f7c06e25dded Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 31 Aug 2023 16:30:53 +0200 Subject: [PATCH] Fix behaviour Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index bfdb397..a57870a 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -209,8 +209,9 @@ public class BauCommand extends SWCommand { if (target == null) return; - target.setWorldEdit(!target.isWorldEdit()); - target.setWorld(!target.isWorld()); + boolean state = !target.isWorldEdit() || !target.isWorld(); + target.setWorldEdit(state); + target.setWorld(state); clearMembercache(p); isAllowedTo(target.isWorldEdit(), p, target, "BAU_MEMBER_TOGGLE_WORLD_EDIT"); isAllowedTo(target.isWorld(), p, target, "BAU_MEMBER_TOGGLE_WORLD");