Remove permissions based sit

This commit is contained in:
Shevchik 2014-03-07 22:31:28 +04:00
parent 547bbbadd2
commit 6d3071d626

View File

@ -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) {