mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 19:17:40 +01:00
Fixed issue where settings.* permission was not working
This commit is contained in:
parent
474de77ce2
commit
633007630d
@ -38,7 +38,8 @@ public class CycleClick implements PanelItem.ClickHandler {
|
||||
return true;
|
||||
}
|
||||
String reqPerm = plugin.getIWM().getPermissionPrefix(Util.getWorld(user.getWorld())) + ".settings." + id;
|
||||
if (!user.hasPermission(reqPerm)) {
|
||||
String allPerms = plugin.getIWM().getPermissionPrefix(Util.getWorld(user.getWorld())) + ".settings.*";
|
||||
if (!user.hasPermission(reqPerm) && !user.hasPermission(allPerms)) {
|
||||
user.sendMessage("general.errors.no-permission", TextVariables.PERMISSION, reqPerm);
|
||||
user.getPlayer().playSound(user.getLocation(), Sound.BLOCK_METAL_HIT, 1F, 1F);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user