Remove the rest of not used permissions
This commit is contained in:
parent
ddb244d477
commit
782af5a9da
@ -32,7 +32,7 @@ public class Chairs extends JavaPlugin {
|
||||
public List<ChairBlock> allowedBlocks;
|
||||
public List<Material> validSigns;
|
||||
public boolean autoRotate, signCheck, notifyplayer;
|
||||
public boolean invertedStairCheck, invertedStepCheck, perItemPerms, ignoreIfBlockInHand;
|
||||
public boolean invertedStairCheck, invertedStepCheck, ignoreIfBlockInHand;
|
||||
public boolean sitEffectsEnabled;
|
||||
public double sittingHeight, sittingHeightAdj, distance;
|
||||
public int maxChairWidth;
|
||||
@ -225,7 +225,6 @@ public class Chairs extends JavaPlugin {
|
||||
notifyplayer = getConfig().getBoolean("notify-player");
|
||||
invertedStairCheck = getConfig().getBoolean("upside-down-check");
|
||||
invertedStepCheck = getConfig().getBoolean("upper-step-check");
|
||||
perItemPerms = getConfig().getBoolean("per-item-perms");
|
||||
ignoreIfBlockInHand = getConfig().getBoolean("ignore-if-block-in-hand");
|
||||
|
||||
sitEffectsEnabled = getConfig().getBoolean("sit-effects.enabled", false);
|
||||
|
@ -116,14 +116,12 @@ public class EventListener implements Listener {
|
||||
}
|
||||
}
|
||||
if (blockOkay ||
|
||||
(plugin.perItemPerms &&
|
||||
(
|
||||
player.hasPermission("chairs.sit." + block.getTypeId() + ":" + block.getData()) ||
|
||||
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) {
|
||||
|
@ -37,12 +37,9 @@ sign-check: false
|
||||
distance: 2
|
||||
sitting-height: 0.7
|
||||
sitting-height-adj: 1.0
|
||||
permissions: true
|
||||
notify-player: true
|
||||
upside-down-check: true
|
||||
upper-step-check: true
|
||||
per-item-perms: true
|
||||
ops-override-perms: false
|
||||
ignore-if-block-in-hand: false
|
||||
sit-effects:
|
||||
enabled: false
|
||||
|
Loading…
Reference in New Issue
Block a user