Configurable max amount to test via perms

This commit is contained in:
CmdrKittens
2020-03-17 21:33:48 -04:00
parent 876c696e86
commit 0272e20d60
4 changed files with 15 additions and 4 deletions
@@ -77,7 +77,7 @@ public class VaultOperations {
if (sender.hasPermission("playervaults.amount." + number)) {
return true;
}
for (int x = number; x <= 99; x++) {
for (int x = number; x <= PlayerVaults.getInstance().getMaxVaultAmountPermTest(); x++) {
if (sender.hasPermission("playervaults.amount." + x)) {
return true;
}