Fixed F Chest Name Bug

This commit is contained in:
Driftay 2018-12-29 13:43:54 -05:00
parent e14339444c
commit c45ee751f5
2 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,6 @@ public class FUpgradesGUI implements Listener {
case 2: size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-2"); break; case 2: size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-2"); break;
case 3: size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-3"); break; case 3: size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-3"); break;
} }
faction.setChestSize(size * 9); faction.setChestSize(size * 9);
} }

View File

@ -375,7 +375,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-3") * 9; size = SavageFactions.plugin.getConfig().getInt("fupgrades.MainMenu.Chest.Chest-Size.level-3") * 9;
} }
chest = Bukkit.createInventory(null, size); chest = Bukkit.createInventory(null, size, SavageFactions.plugin.color(SavageFactions.plugin.getConfig().getString("fchest.Inventory-Title")));
return chest; return chest;
} }
@ -385,7 +385,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
@Override @Override
public void setChestSize(int chestSize) { public void setChestSize(int chestSize) {
ItemStack[] contents = this.getChestInventory().getContents(); ItemStack[] contents = this.getChestInventory().getContents();
chest = Bukkit.createInventory(null, chestSize); chest = Bukkit.createInventory(null, chestSize, SavageFactions.plugin.color(SavageFactions.plugin.getConfig().getString("fchest.Inventory-Title")));
chest.setContents(contents); chest.setContents(contents);
} }