mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-08 03:40:04 +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
|
//Block Enderchests
|
||||||
if(clickedBlock!=null){
|
if(clickedBlock!=null){
|
||||||
|
if(GameWorld.get(player.getWorld())!=null || EditWorld.get(player.getWorld())!=null)
|
||||||
if(event.getAction()!=Action.LEFT_CLICK_BLOCK){
|
if(event.getAction()!=Action.LEFT_CLICK_BLOCK){
|
||||||
if(clickedBlock.getType()==Material.ENDER_CHEST){
|
if(clickedBlock.getType()==Material.ENDER_CHEST){
|
||||||
p.msg(player, ChatColor.RED+"Du kannst keine Enderchest in einem Dungeon verwenden!");
|
p.msg(player, ChatColor.RED+"Du kannst keine Enderchest in einem Dungeon verwenden!");
|
||||||
|
Loading…
Reference in New Issue
Block a user