mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Block Enderchests only for DXL worlds
This commit is contained in:
parent
d79ede273b
commit
9c1c8ff792
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user