From f83ba6ab964ae71c3297e97c60422bc2235c328e Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 1 Feb 2024 20:02:43 +0100 Subject: [PATCH] Fix AxiomPermissionCheck --- .../bausystem/features/world/AxiomPermissionCheck.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 5ee07dae..05faf23a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AxiomPermissionCheck.java @@ -32,7 +32,10 @@ public class AxiomPermissionCheck implements Listener { @EventHandler public void onAxiomHandshake(AxiomHandshakeEvent event) { - if (Permission.WORLDEDIT.hasPermission(event.getPlayer())) return; + if (Permission.WORLDEDIT.hasPermission(event.getPlayer())) { + event.setMaxBufferSize(Short.MAX_VALUE); + return; + } event.setCancelled(true); } }