From 030f2649ee30f5eca42173d57a839416dafd08cc Mon Sep 17 00:00:00 2001 From: j502647092 Date: Sun, 30 Aug 2015 23:02:06 +0800 Subject: [PATCH] rebuild... Signed-off-by: j502647092 --- .../GuiShopManager/GuiShopManager.java | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/main/java/cn/citycraft/GuiShopManager/GuiShopManager.java b/src/main/java/cn/citycraft/GuiShopManager/GuiShopManager.java index f7489b5..c3e5cae 100644 --- a/src/main/java/cn/citycraft/GuiShopManager/GuiShopManager.java +++ b/src/main/java/cn/citycraft/GuiShopManager/GuiShopManager.java @@ -20,11 +20,11 @@ public class GuiShopManager extends BossShopAddon { FileConfiguration c = getConfig(); c.set("Version", getDescription().getVersion()); - c.set("Settings.AllowPlaceItems", Boolean.valueOf(false)); - c.set("Settings.AllowMoveItems", Boolean.valueOf(false)); - c.set("Settings.AllowDropItems", Boolean.valueOf(false)); - c.set("Settings.DropItemsOnDeath", Boolean.valueOf(false)); - c.set("Settings.GetItemsOnRespawn", Boolean.valueOf(true)); + c.set("Settings.AllowPlaceItems", false); + c.set("Settings.AllowMoveItems", false); + c.set("Settings.AllowDropItems", false); + c.set("Settings.DropItemsOnDeath", false); + c.set("Settings.GetItemsOnRespawn", false); List compass = new ArrayList(); compass.add("name:&aQuick Warp &7(Right Click) &6[x]"); @@ -38,13 +38,13 @@ public class GuiShopManager extends BossShopAddon { book.add("amount:1"); c.set("Items.BossShopMenu.Look", book); - c.set("Items.BossShopMenu.GiveOnJoin", Boolean.valueOf(true)); - c.set("Items.BossShopMenu.InventoryLocation", Integer.valueOf(1)); + c.set("Items.BossShopMenu.GiveOnJoin", true); + c.set("Items.BossShopMenu.InventoryLocation", 1); c.set("Items.BossShopMenu.OpenShop", "menu"); c.set("Items.Servers.Look", compass); - c.set("Items.Servers.GiveOnJoin", Boolean.valueOf(true)); - c.set("Items.Servers.InventoryLocation", Integer.valueOf(9)); + c.set("Items.Servers.GiveOnJoin", true); + c.set("Items.Servers.InventoryLocation", 9); c.set("Items.Servers.OpenShop", "bungeecordservers"); saveConfig(); @@ -53,8 +53,7 @@ public class GuiShopManager extends BossShopAddon { @Override public void bossShopReloaded(CommandSender sender) { reload(); - sender.sendMessage(ChatColor.YELLOW + "Reloaded BossShop Addon " + ChatColor.GOLD - + getAddonName()); + sender.sendMessage(ChatColor.YELLOW + "Reloaded BossShop Addon " + ChatColor.GOLD + getAddonName()); } @Override @@ -66,11 +65,9 @@ public class GuiShopManager extends BossShopAddon { if (getConfig().getString("Version") == null) { addDefaultConfig(); } - this.items = new GSMItems(this); this.listener = new PlayerListener(this); getServer().getPluginManager().registerEvents(this.listener, this); - getCommand("gsm").setExecutor(new Commander(this)); }