From 0b70bdfe97dc58d09e78816e4dd40b57854318c5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 16 Dec 2023 14:05:58 +0100 Subject: [PATCH] Fix Permission.SPECTATOR --- BauSystem_Main/src/de/steamwar/bausystem/Permission.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java index 009e51a5..3e25ced6 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java @@ -52,8 +52,8 @@ public enum Permission { private final Predicate permissionPredicate; public boolean hasPermission(Player member) { - BauweltMember bauMember = BauweltMember.getBauMember(BauServer.getInstance().getOwner(), member.getUniqueId()); - if (bauMember == null) return false; - return permissionPredicate.test(bauMember); + BauweltMember bauweltMember = BauweltMember.getBauMember(BauServer.getInstance().getOwner(), member.getUniqueId()); + if (bauweltMember == null) return this != SPECTATOR; + return permissionPredicate.test(bauweltMember); } } \ No newline at end of file