From aeceb98292a1453d815a3af7202509b34328b0b0 Mon Sep 17 00:00:00 2001 From: Hazar Date: Fri, 14 Jun 2019 18:23:25 +0300 Subject: [PATCH 1/2] Update GuildVaultSettings.java Added option for change the guild vault rows --- .../guilds/configuration/sections/GuildVaultSettings.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/glaremasters/guilds/configuration/sections/GuildVaultSettings.java b/src/main/java/me/glaremasters/guilds/configuration/sections/GuildVaultSettings.java index d3f645dd8..55cae70c2 100644 --- a/src/main/java/me/glaremasters/guilds/configuration/sections/GuildVaultSettings.java +++ b/src/main/java/me/glaremasters/guilds/configuration/sections/GuildVaultSettings.java @@ -44,6 +44,10 @@ public class GuildVaultSettings implements SettingsHolder { "Note: This requires a restart to change the inventory names."}) public static final Property VAULT_NAME = newProperty("guis.vault.name", "&8ยป &rGuild Vault"); + + @Comment("Must be an integer") + public static final Property VAULT_ROWS = + newProperty("guis.vault.rows", 6); @Comment("What materials would you like to blacklist from being put into the vaults?") public static final Property> BLACKLIST_MATERIALS = From 18e1ae12a118a31a2f13e5d666bc6945db3c006d Mon Sep 17 00:00:00 2001 From: Hazar Date: Fri, 14 Jun 2019 18:30:14 +0300 Subject: [PATCH 2/2] Update GuildHandler.java Added an option for change the guild vault rows. --- src/main/java/me/glaremasters/guilds/guild/GuildHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/glaremasters/guilds/guild/GuildHandler.java b/src/main/java/me/glaremasters/guilds/guild/GuildHandler.java index a9a23ec53..f12de195f 100644 --- a/src/main/java/me/glaremasters/guilds/guild/GuildHandler.java +++ b/src/main/java/me/glaremasters/guilds/guild/GuildHandler.java @@ -633,7 +633,7 @@ public boolean hasVaultUnlocked(int vault, Guild guild) { * @return new vault */ public Inventory createNewVault(SettingsManager settingsManager) { - return Bukkit.createInventory(null, 54, ACFBukkitUtil.color(settingsManager.getProperty(GuildVaultSettings.VAULT_NAME))); + return Bukkit.createInventory(null, (9*settingsManager.getProperty(GuildVaultSettings.VAULT_ROWS)), ACFBukkitUtil.color(settingsManager.getProperty(GuildVaultSettings.VAULT_NAME))); } /**