Another small refactor
This commit is contained in:
parent
b88af8e96f
commit
8da5322de5
@ -163,11 +163,16 @@ public class EventListener implements Listener {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (blockOkay
|
if (blockOkay ||
|
||||||
|| (player.hasPermission("chairs.sit." + block.getTypeId() + ":" + block.getData()) && plugin.perItemPerms)
|
(plugin.perItemPerms &&
|
||||||
|| (player.hasPermission("chairs.sit." + block.getType().toString() + ":" + block.getData()) && plugin.perItemPerms)
|
(
|
||||||
|| (player.hasPermission("chairs.sit." + block.getTypeId()) && plugin.perItemPerms)
|
player.hasPermission("chairs.sit." + block.getTypeId() + ":" + block.getData()) ||
|
||||||
|| (player.hasPermission("chairs.sit." + block.getType().toString()) && plugin.perItemPerms)) {
|
player.hasPermission("chairs.sit." + block.getType().toString() + ":" + block.getData()) ||
|
||||||
|
player.hasPermission("chairs.sit." + block.getTypeId()) ||
|
||||||
|
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();
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user