Remove permissions based sit
This commit is contained in:
parent
547bbbadd2
commit
6d3071d626
@ -92,14 +92,8 @@ public class TrySitEventListener implements Listener {
|
|||||||
WoodenStep wStep = null;
|
WoodenStep wStep = null;
|
||||||
|
|
||||||
// Check for block is chair
|
// Check for block is chair
|
||||||
if (
|
if (isValidChair(block)) {
|
||||||
isValidChair(block) ||
|
|
||||||
(
|
|
||||||
!player.hasPermission("chairs.sit.antiopcheck") &&
|
|
||||||
player.hasPermission("chairs.sit." + block.getType().toString())
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (block.getState().getData() instanceof Stairs) {
|
if (block.getState().getData() instanceof Stairs) {
|
||||||
stairs = (Stairs) block.getState().getData();
|
stairs = (Stairs) block.getState().getData();
|
||||||
} else if (block.getState().getData() instanceof Step) {
|
} else if (block.getState().getData() instanceof Step) {
|
||||||
|
Loading…
Reference in New Issue
Block a user