From ec93dfd8ec7162376e48a13436221151a4789f7e Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 16 Dec 2023 14:04:46 +0100 Subject: [PATCH] Add Permission.SPECTATOR --- BauSystem_Main/src/de/steamwar/bausystem/Permission.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java index 6d9dbf96..009e51a5 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java @@ -44,6 +44,9 @@ public enum Permission { }), BUILD(bauweltMember -> { return bauweltMember.isWorld() || bauweltMember.isWorldEdit() || SUPERVISOR.permissionPredicate.test(bauweltMember); + }), + SPECTATOR(bauweltMember -> { + return !BUILD.permissionPredicate.test(bauweltMember); }); private final Predicate permissionPredicate;