mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-26 04:12:22 +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;
|
boolean useDefault = true;
|
||||||
|
|
||||||
for (PermissionAttachmentInfo permInfo : p.getEffectivePermissions()) {
|
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)) {
|
if (permInfo.getPermission().equalsIgnoreCase(Permissions.NO_LIMIT)) {
|
||||||
limit = -1;
|
limit = -1;
|
||||||
useDefault = false;
|
useDefault = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user