Block sleeping in beds
This commit is contained in:
parent
8379c6235b
commit
5e70ff8471
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user