mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Minor improvements.
This commit is contained in:
parent
bb2cdea235
commit
4bcebfcea0
@ -55,8 +55,13 @@ public class KitEditorGui extends DoubleGui {
|
||||
|
||||
setOnClose((event) -> {
|
||||
this.saveKit(player, inventory, false);
|
||||
|
||||
CompatibleSound.ENTITY_VILLAGER_YES.play(player);
|
||||
|
||||
if (!isInInventory && this.inventoryItems.length != 0) {
|
||||
player.getInventory().setContents(this.inventoryItems);
|
||||
player.updateInventory();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
ItemStack glass1 = GuiUtils.getBorderItem(Settings.GLASS_TYPE_1.getMaterial());
|
||||
@ -193,22 +198,22 @@ public class KitEditorGui extends DoubleGui {
|
||||
|
||||
private void setInvItems() {
|
||||
|
||||
setPlayerButton(9, GuiUtils.createButtonItem(CompatibleMaterial.REDSTONE_TORCH,
|
||||
setPlayerButton(0, GuiUtils.createButtonItem(CompatibleMaterial.REDSTONE_TORCH,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.generaloptions").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.generaloptionslore").getMessage().split("\\|")),
|
||||
(event) -> guiManager.showGUI(player, new KitGeneralOptionsGui(plugin, player, kit, this)));
|
||||
|
||||
setPlayerButton(10, GuiUtils.createButtonItem(CompatibleMaterial.EMERALD,
|
||||
setPlayerButton(1, GuiUtils.createButtonItem(CompatibleMaterial.EMERALD,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.sellingoptions").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.sellingoptionslore").getMessage().split("\\|")),
|
||||
(event) -> guiManager.showGUI(player, new KitSellingOptionsGui(plugin, player, kit, this)));
|
||||
|
||||
setPlayerButton(12, GuiUtils.createButtonItem(CompatibleMaterial.ITEM_FRAME,
|
||||
setPlayerButton(3, GuiUtils.createButtonItem(CompatibleMaterial.ITEM_FRAME,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.guioptions").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.guioptionslore").getMessage().split("\\|")),
|
||||
(event) -> guiManager.showGUI(player, new KitGuiOptionsGui(plugin, player, kit, parent)));
|
||||
|
||||
setPlayerButton(13, GuiUtils.createButtonItem(CompatibleMaterial.PAPER,
|
||||
setPlayerButton(4, GuiUtils.createButtonItem(CompatibleMaterial.PAPER,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.addcommand").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.addcommandlore").getMessage().split("\\|")),
|
||||
(event) -> {
|
||||
@ -239,7 +244,7 @@ public class KitEditorGui extends DoubleGui {
|
||||
.setOnCancel(() -> {event.player.sendMessage(ChatColor.RED + "Edit canceled"); event.manager.showGUI(event.player, this);});
|
||||
});
|
||||
|
||||
setPlayerButton(14, GuiUtils.createButtonItem(CompatibleMaterial.SUNFLOWER,
|
||||
setPlayerButton(5, GuiUtils.createButtonItem(CompatibleMaterial.SUNFLOWER,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.addeconomy").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.addeconomylore").getMessage().split("\\|")),
|
||||
(event) -> {
|
||||
@ -271,7 +276,7 @@ public class KitEditorGui extends DoubleGui {
|
||||
guiManager.showGUI(event.player, gui);
|
||||
});
|
||||
|
||||
setPlayerButton(17, GuiUtils.createButtonItem(CompatibleMaterial.CHEST,
|
||||
setPlayerButton(8, GuiUtils.createButtonItem(CompatibleMaterial.CHEST,
|
||||
plugin.getLocale().getMessage("interface.kiteditor.animation").getMessage(),
|
||||
plugin.getLocale().getMessage("interface.kiteditor.animationlore")
|
||||
.processPlaceholder("animation", kit.getKitAnimation().name())
|
||||
|
@ -105,7 +105,7 @@ interface.kitoptions.destroylore = "|&7Click this to destroy this kit."
|
||||
interface.kitoptions.destroyprompt = "Enter \"%kit%\""
|
||||
interface.kitoptions.destroyok = "&cKit destroyed successfully."
|
||||
interface.kitoptions.destroycancel = "&cKit was not Destroyed."
|
||||
interface.kiteditor.title = "&8You are editing kit: &9%name&8."
|
||||
interface.kiteditor.title = "&8You are editing kit: &9%name%&8."
|
||||
interface.kiteditor.info = "&5&l%kit%|&fPermissions:|&7%perm%"
|
||||
interface.kiteditor.generaloptions = "&6General Options"
|
||||
interface.kiteditor.generaloptionslore = "&7Click to edit adjust|&7general options."
|
||||
|
Loading…
Reference in New Issue
Block a user