From 4f8c63d6a01ccf3df2d58f29b806a9efe33a47a0 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 15 Feb 2018 11:25:56 +0000 Subject: [PATCH] Fixed some issues with the level update found after pushing to EU --- .../mineplex/core/achievement/leveling/LevelingManager.java | 2 +- .../src/mineplex/core/cosmetic/ui/page/Menu.java | 4 ++-- .../Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java | 1 + Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/achievement/leveling/LevelingManager.java b/Plugins/Mineplex.Core/src/mineplex/core/achievement/leveling/LevelingManager.java index 72eebf04e..bd4714df5 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/achievement/leveling/LevelingManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/achievement/leveling/LevelingManager.java @@ -408,7 +408,7 @@ public class LevelingManager extends MiniDbClientPlugin> implement public void claim(Player player, int level) { Get(player).add(level); - _repository.claimReward(ClientManager.getAccountId(player), level); + runAsync(() -> _repository.claimReward(ClientManager.getAccountId(player), level)); } public boolean hasClaimed(Player player, int level) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/Menu.java b/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/Menu.java index 08a3ded86..406a77470 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/Menu.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/Menu.java @@ -204,12 +204,12 @@ public class Menu extends ShopPageBase if (enabled.containsKey(type)) addGlow(flagSlot); type = GadgetType.WEAPON_NAME; - lore = getLore(ownedCount.get(type), maxCount.get(type), "Something something", VISIBILITY_GAMES, null); + lore = getLore(ownedCount.get(type), maxCount.get(type), "\"Automaigcally\" changes your sword names to really show off how cool you are.", VISIBILITY_GAMES, null); addButton(weaponNameSlot, new ShopItem(Material.DIAMOND_SWORD, "Weapon Names", lore, 1, false), new OpenWeaponNames(this, null)); if (enabled.containsKey(type)) addGlow(weaponNameSlot); type = GadgetType.LEVEL_PREFIX; - lore = getLore(ownedCount.get(type), maxCount.get(type), "Something something", VISIBILITY_HUB, enabled.get(type)); + lore = getLore(ownedCount.get(type), maxCount.get(type), "Changes the color of your level in chat!", VISIBILITY_HUB, enabled.get(type)); addButton(chatColourSlot, new ShopItem(Material.PAPER, "Level Colors", lore, 1, false), generateButton(type, enabled.get(type))); if (enabled.containsKey(type)) addGlow(weaponNameSlot); diff --git a/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java b/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java index 39a7bb3eb..5f92f6983 100644 --- a/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java +++ b/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/HubManager.java @@ -195,6 +195,7 @@ public class HubManager extends MiniPlugin implements IChatMessageFormatter new BenefitManager(plugin, clientManager, _inventoryManager); _gadgetManager = require(GadgetManager.class); + achievementManager.setGadgetManager(_gadgetManager); YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager); _bonusManager = new BonusManager(plugin, null, clientManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, youtubeManager, _gadgetManager, thankManager, "Carter"); diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java index 9c88b2866..00f3e86e8 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java @@ -177,6 +177,7 @@ public class HubManager extends MiniClientPlugin implements IChatMess new BenefitManager(_plugin, clientManager, inventoryManager); _gadgetManager = require(GadgetManager.class); + achievementManager.setGadgetManager(_gadgetManager); YoutubeManager youtubeManager = new YoutubeManager(_plugin, clientManager, donationManager);