From ebee135ce2d0dde2d0adf8a81e84ebd30b41495a Mon Sep 17 00:00:00 2001 From: Fabrizio La Rosa Date: Tue, 7 Jul 2020 17:07:00 +0200 Subject: [PATCH] Removed placeholder in bank anvil gui --- .../songoda/skyblock/gui/bank/GuiBankSelector.java | 14 +++----------- src/main/resources/language.yml | 1 - 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java b/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java index ea75ca31..9a6fa262 100644 --- a/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java +++ b/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java @@ -185,21 +185,13 @@ public class GuiBankSelector extends Gui { e.player.closeInventory(); guiManager.showGUI(event.player, returnGui); })); - - ItemStack input = CompatibleMaterial.PAPER.getItem(); - ItemMeta im = input.getItemMeta(); - if(im != null){ - im.setDisplayName(TextUtils.formatText(languageLoad.getString("Menu.Bank.Words.Amount"))); - input.setItemMeta(im); - } - - gui.setInput(input); + switch(type){ case DEPOSIT: - gui.setTitle(TextUtils.formatText(languageLoad.getString("Menu.Bank.Words.Deposit"))); + gui.setTitle(languageLoad.getString("Menu.Bank.Words.Deposit")); break; case WITHDRAW: - gui.setTitle(TextUtils.formatText(languageLoad.getString("Menu.Bank.Words.Withdraw"))); + gui.setTitle(languageLoad.getString("Menu.Bank.Words.Withdraw")); break; } guiManager.showGUI(event.player, gui); diff --git a/src/main/resources/language.yml b/src/main/resources/language.yml index b698876f..2a4918c4 100644 --- a/src/main/resources/language.yml +++ b/src/main/resources/language.yml @@ -3392,7 +3392,6 @@ Menu: Words: Withdraw: 'Withdraw' Deposit: 'Deposit' - Amount: 'Amount' Input: Title: 'Select amount.' Item: