diff --git a/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java b/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java index b42990ad2..35739017a 100644 --- a/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java +++ b/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java @@ -204,34 +204,9 @@ public class HubManager extends MiniPlugin implements IChatMessageFormatter _bonusManager = new BonusManager(plugin, null, playWireManager, clientManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, thankManager, "Carter"); World world = _spawn.getWorld(); -// _treasureManager = new TreasureManager(_plugin, clientManager, serverStatusManager, donationManager, _inventoryManager, petManager, _gadgetManager, _blockRestore, hologramManager, statsManager, _bonusManager.getRewardManager()); -// _treasureManager.disable(); -// { -// Block chestBlock = world.getBlockAt(-1, 178, -9); -// Block chestLoc1 = world.getBlockAt(-4, 178, -8); -// Block chestLoc2 = world.getBlockAt(-4, 178, -10); -// Block chestLoc3 = world.getBlockAt(-2, 178, -12); -// Block chestLoc4 = world.getBlockAt(0, 178, -12); -// Block chestLoc5 = world.getBlockAt(2, 178, -10); -// Block chestLoc6 = world.getBlockAt(2, 178, -8); -// Block chestLoc7 = world.getBlockAt(0, 178, -6); -// Block chestLoc8 = world.getBlockAt(-2, 178, -6); -// TreasureLocation loc = new TreasureLocation(_treasureManager, _inventoryManager, clientManager, donationManager, chestBlock, new Block[]{chestLoc1, chestLoc2, chestLoc3, chestLoc4, chestLoc5, chestLoc6, chestLoc7, chestLoc8}, _spawn, hologramManager, _gadgetManager, serverStatusManager); -// _treasureManager.addTreasureLocation(loc); -// } -// { -// Block chestBlock = world.getBlockAt(-1, 178, 9); -// Block chestLoc1 = world.getBlockAt(-4, 178, 10); -// Block chestLoc2 = world.getBlockAt(-4, 178, 8); -// Block chestLoc3 = world.getBlockAt(-2, 178, 6); -// Block chestLoc4 = world.getBlockAt(0, 178, 6); -// Block chestLoc5 = world.getBlockAt(2, 178, 8); -// Block chestLoc6 = world.getBlockAt(2, 178, 10); -// Block chestLoc7 = world.getBlockAt(0, 178, 12); -// Block chestLoc8 = world.getBlockAt(-2, 178, 12); -// TreasureLocation loc = new TreasureLocation(_treasureManager, _inventoryManager, clientManager, donationManager, chestBlock, new Block[]{chestLoc1, chestLoc2, chestLoc3, chestLoc4, chestLoc5, chestLoc6, chestLoc7, chestLoc8}, _spawn, hologramManager, _gadgetManager, serverStatusManager); -// _treasureManager.addTreasureLocation(loc); -// } + _treasureManager = require(TreasureManager.class); + _treasureManager.addTreasureLocation(world.getBlockAt(-1, 178, -9).getLocation()); + _treasureManager.addTreasureLocation(world.getBlockAt(-1, 178, 9).getLocation()); new CosmeticManager(_plugin, clientManager, donationManager, _inventoryManager, _gadgetManager, petManager, _treasureManager, boosterManager, punish);