diff --git a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java index 587469c8..de080a5f 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java @@ -45,11 +45,12 @@ public class PlayerListener implements Listener{ //Block Enderchests if(clickedBlock!=null){ - if(GameWorld.get(player.getWorld())!=null || EditWorld.get(player.getWorld())!=null) - if(event.getAction()!=Action.LEFT_CLICK_BLOCK){ - if(clickedBlock.getType()==Material.ENDER_CHEST){ - p.msg(player, ChatColor.RED+"Du kannst keine Enderchest in einem Dungeon verwenden!"); - event.setCancelled(true); + if(GameWorld.get(player.getWorld())!=null || EditWorld.get(player.getWorld())!=null){ + if(event.getAction()!=Action.LEFT_CLICK_BLOCK){ + if(clickedBlock.getType()==Material.ENDER_CHEST){ + p.msg(player, ChatColor.RED+"Du kannst keine Enderchest in einem Dungeon verwenden!"); + event.setCancelled(true); + } } } }