From ce1de0dfdff3e0f7704a28f74d8b0fb8b0283274 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 6 Sep 2023 19:54:12 +0200 Subject: [PATCH] Add AxiomPermissionCheck Signed-off-by: yoyosource --- .../bausystem/features/world/AxiomPermissionCheck.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java index ff2ef4e9..5ee07dae 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java @@ -32,8 +32,7 @@ public class AxiomPermissionCheck implements Listener { @EventHandler public void onAxiomHandshake(AxiomHandshakeEvent event) { - if (!Permission.WORLDEDIT.hasPermission(event.getPlayer())) { - event.setCancelled(true); - } + if (Permission.WORLDEDIT.hasPermission(event.getPlayer())) return; + event.setCancelled(true); } }