mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Enderchests sind nun geblockt
This commit is contained in:
parent
4139aecb42
commit
d79ede273b
@ -43,6 +43,17 @@ public class PlayerListener implements Listener{
|
|||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
Block clickedBlock=event.getClickedBlock();
|
Block clickedBlock=event.getClickedBlock();
|
||||||
|
|
||||||
|
//Block Enderchests
|
||||||
|
if(clickedBlock!=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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Check Portals
|
//Check Portals
|
||||||
if(event.getItem()!=null){
|
if(event.getItem()!=null){
|
||||||
if(event.getItem().getType()==Material.WOOD_SWORD){
|
if(event.getItem().getType()==Material.WOOD_SWORD){
|
||||||
|
Loading…
Reference in New Issue
Block a user