Disable the use of Ender Chests
This commit is contained in:
parent
e8e73306be
commit
8ee2c02dd9
@ -304,6 +304,16 @@ public class Gameplay extends MiniPlugin
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void disableEnderChest(PlayerInteractEvent event)
|
||||
{
|
||||
if (event.getClickedBlock().getType().equals(Material.ENDER_CHEST))
|
||||
{
|
||||
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You are not permitted to use Ender Chests."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onInteract(PlayerInteractEvent event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user