mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-10 04:31:06 +00:00
Add additional check for permissions (#42)
This commit is contained in:
parent
192b124eb5
commit
f4b7df8c92
@ -122,7 +122,7 @@ public class ShopUtils {
|
||||
boolean useDefault = true;
|
||||
|
||||
for (PermissionAttachmentInfo permInfo : p.getEffectivePermissions()) {
|
||||
if (permInfo.getPermission().startsWith("shopchest.limit.")) {
|
||||
if (permInfo.getPermission().startsWith("shopchest.limit.") && p.hasPermission(permInfo.getPermission())) {
|
||||
if (permInfo.getPermission().equalsIgnoreCase(Permissions.NO_LIMIT)) {
|
||||
limit = -1;
|
||||
useDefault = false;
|
||||
|
Loading…
Reference in New Issue
Block a user