From 883db72391c9d80ef4f0e96639c9bb8041a7f059 Mon Sep 17 00:00:00 2001 From: Aurora Date: Fri, 10 Jul 2020 11:44:38 +0200 Subject: [PATCH] Change lore when removing category from Kit --- .../java/com/songoda/ultimatekits/gui/KitGeneralOptionsGui.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/songoda/ultimatekits/gui/KitGeneralOptionsGui.java b/src/main/java/com/songoda/ultimatekits/gui/KitGeneralOptionsGui.java index 20bf5cb..fc6b4f2 100644 --- a/src/main/java/com/songoda/ultimatekits/gui/KitGeneralOptionsGui.java +++ b/src/main/java/com/songoda/ultimatekits/gui/KitGeneralOptionsGui.java @@ -84,6 +84,8 @@ public class KitGeneralOptionsGui extends Gui { guiManager.showGUI(event.player, gui); } else if (event.clickType == ClickType.RIGHT) { kit.setCategory(null); + updateItemLore(event.slot, plugin.getLocale().getMessage("interface.kitoptions.categorylore") + .processPlaceholder("category", kit.getCategory() == null ? "none" : kit.getCategory().getName()).getMessage().split("\\|")); } });