Change lore when removing category from Kit

This commit is contained in:
Aurora 2020-07-10 11:44:38 +02:00 committed by Brianna
parent 95833a4622
commit 883db72391

View File

@ -84,6 +84,8 @@ public class KitGeneralOptionsGui extends Gui {
guiManager.showGUI(event.player, gui); guiManager.showGUI(event.player, gui);
} else if (event.clickType == ClickType.RIGHT) { } else if (event.clickType == ClickType.RIGHT) {
kit.setCategory(null); kit.setCategory(null);
updateItemLore(event.slot, plugin.getLocale().getMessage("interface.kitoptions.categorylore")
.processPlaceholder("category", kit.getCategory() == null ? "none" : kit.getCategory().getName()).getMessage().split("\\|"));
} }
}); });