Ender chest blocker not actually canceling the opening event.

This commit is contained in:
Ben 2016-04-12 17:13:03 +01:00
parent eefed175ec
commit c0ebae4175

View File

@ -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;
}
}