Block sleeping in beds

This commit is contained in:
AlexTheCoder 2017-07-17 13:17:28 -04:00
parent 8379c6235b
commit 5e70ff8471

View File

@ -759,6 +759,13 @@ public class ClansGame extends MiniPlugin
ClanInfo clan = _clans.getClan(event.getPlayer()); ClanInfo clan = _clans.getClan(event.getPlayer());
Block block = event.getClickedBlock(); Block block = event.getClickedBlock();
if (UtilEvent.isAction(event, ActionType.R_BLOCK) && block.getType() == Material.BED_BLOCK)
{
event.setCancelled(true);
return;
}
Player player = event.getPlayer(); Player player = event.getPlayer();
if (clan == null) if (clan == null)