Fix treasure chests in Clans Hubs

This commit is contained in:
Alexander Meech 2017-10-14 18:51:41 -07:00
parent 239bbbd96c
commit f12ee91b79
1 changed files with 3 additions and 28 deletions

View File

@ -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"); _bonusManager = new BonusManager(plugin, null, playWireManager, clientManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, thankManager, "Carter");
World world = _spawn.getWorld(); World world = _spawn.getWorld();
// _treasureManager = new TreasureManager(_plugin, clientManager, serverStatusManager, donationManager, _inventoryManager, petManager, _gadgetManager, _blockRestore, hologramManager, statsManager, _bonusManager.getRewardManager()); _treasureManager = require(TreasureManager.class);
// _treasureManager.disable(); _treasureManager.addTreasureLocation(world.getBlockAt(-1, 178, -9).getLocation());
// { _treasureManager.addTreasureLocation(world.getBlockAt(-1, 178, 9).getLocation());
// 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);
// }
new CosmeticManager(_plugin, clientManager, donationManager, _inventoryManager, _gadgetManager, petManager, _treasureManager, boosterManager, punish); new CosmeticManager(_plugin, clientManager, donationManager, _inventoryManager, _gadgetManager, petManager, _treasureManager, boosterManager, punish);