Block Enderchests only for DXL worlds

This commit is contained in:
Frank Baumann 2012-11-11 18:31:03 +01:00
parent d79ede273b
commit 9c1c8ff792

View File

@ -45,6 +45,7 @@ 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!");