From 641a7bb6ecae44544af6c3eebcd383c762334bf2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 27 Oct 2020 15:27:29 +0100 Subject: [PATCH] Hotfix WE problem --- .../de/steamwar/bausystem/world/RegionListener.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java index 55b90cc..70718f1 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java @@ -68,9 +68,13 @@ public class RegionListener implements Listener { public void onBlockPlace(BlockPlaceEvent e) { Player p = e.getPlayer(); - if (Welt.noPermission(p, Permission.build)){ - p.sendMessage(BauSystem.PREFIX + "§cDu darfst hier keine Blöcke platzieren"); - e.setCancelled(true); + try{ + if (Welt.noPermission(p, Permission.build)){ + p.sendMessage(BauSystem.PREFIX + "§cDu darfst hier keine Blöcke platzieren"); + e.setCancelled(true); + } + }catch(NullPointerException ex){ + //ignored, caused by worldedit brushes } }