Fixed some issues with the level update found after pushing to EU

This commit is contained in:
Sam 2018-02-15 11:25:56 +00:00 committed by Alexander Meech
parent eae89dc4f2
commit 4f8c63d6a0
4 changed files with 5 additions and 3 deletions

View File

@ -408,7 +408,7 @@ public class LevelingManager extends MiniDbClientPlugin<List<Integer>> 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)

View File

@ -204,12 +204,12 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
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);

View File

@ -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");

View File

@ -177,6 +177,7 @@ public class HubManager extends MiniClientPlugin<HubClient> implements IChatMess
new BenefitManager(_plugin, clientManager, inventoryManager);
_gadgetManager = require(GadgetManager.class);
achievementManager.setGadgetManager(_gadgetManager);
YoutubeManager youtubeManager = new YoutubeManager(_plugin, clientManager, donationManager);