Customizable default (no perms) vault size

This commit is contained in:
CmdrKittens
2020-04-09 00:49:34 -04:00
parent 167189c064
commit 9a8538b844
5 changed files with 26 additions and 9 deletions
@@ -523,6 +523,15 @@ public class PlayerVaults extends JavaPlugin {
return _versionString;
}
public int getDefaultVaultRows() {
int def = this.config.getDefaultVaultRows();
return (def >= 1 && def <=6) ? def : 6;
}
public int getDefaultVaultSize() {
return this.getDefaultVaultRows() * 9;
}
public boolean isSign(Material mat) {
return mat.name().toUpperCase().contains("SIGN");
}