Ender chest blocker not actually canceling the opening event.
This commit is contained in:
parent
eefed175ec
commit
c0ebae4175
@ -326,6 +326,7 @@ public class Gameplay extends MiniPlugin
|
||||
if (event.getClickedBlock().getType().equals(Material.ENDER_CHEST))
|
||||
{
|
||||
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You are not permitted to use Ender Chests."));
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user