Fixed some issues with the level update found after pushing to EU
This commit is contained in:
parent
eae89dc4f2
commit
4f8c63d6a0
@ -408,7 +408,7 @@ public class LevelingManager extends MiniDbClientPlugin<List<Integer>> implement
|
|||||||
public void claim(Player player, int level)
|
public void claim(Player player, int level)
|
||||||
{
|
{
|
||||||
Get(player).add(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)
|
public boolean hasClaimed(Player player, int level)
|
||||||
|
@ -204,12 +204,12 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
|
|||||||
if (enabled.containsKey(type)) addGlow(flagSlot);
|
if (enabled.containsKey(type)) addGlow(flagSlot);
|
||||||
|
|
||||||
type = GadgetType.WEAPON_NAME;
|
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));
|
addButton(weaponNameSlot, new ShopItem(Material.DIAMOND_SWORD, "Weapon Names", lore, 1, false), new OpenWeaponNames(this, null));
|
||||||
if (enabled.containsKey(type)) addGlow(weaponNameSlot);
|
if (enabled.containsKey(type)) addGlow(weaponNameSlot);
|
||||||
|
|
||||||
type = GadgetType.LEVEL_PREFIX;
|
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)));
|
addButton(chatColourSlot, new ShopItem(Material.PAPER, "Level Colors", lore, 1, false), generateButton(type, enabled.get(type)));
|
||||||
if (enabled.containsKey(type)) addGlow(weaponNameSlot);
|
if (enabled.containsKey(type)) addGlow(weaponNameSlot);
|
||||||
|
|
||||||
|
@ -195,6 +195,7 @@ public class HubManager extends MiniPlugin implements IChatMessageFormatter
|
|||||||
new BenefitManager(plugin, clientManager, _inventoryManager);
|
new BenefitManager(plugin, clientManager, _inventoryManager);
|
||||||
|
|
||||||
_gadgetManager = require(GadgetManager.class);
|
_gadgetManager = require(GadgetManager.class);
|
||||||
|
achievementManager.setGadgetManager(_gadgetManager);
|
||||||
|
|
||||||
YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager);
|
YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager);
|
||||||
_bonusManager = new BonusManager(plugin, null, clientManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, youtubeManager, _gadgetManager, thankManager, "Carter");
|
_bonusManager = new BonusManager(plugin, null, clientManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, youtubeManager, _gadgetManager, thankManager, "Carter");
|
||||||
|
@ -177,6 +177,7 @@ public class HubManager extends MiniClientPlugin<HubClient> implements IChatMess
|
|||||||
|
|
||||||
new BenefitManager(_plugin, clientManager, inventoryManager);
|
new BenefitManager(_plugin, clientManager, inventoryManager);
|
||||||
_gadgetManager = require(GadgetManager.class);
|
_gadgetManager = require(GadgetManager.class);
|
||||||
|
achievementManager.setGadgetManager(_gadgetManager);
|
||||||
|
|
||||||
YoutubeManager youtubeManager = new YoutubeManager(_plugin, clientManager, donationManager);
|
YoutubeManager youtubeManager = new YoutubeManager(_plugin, clientManager, donationManager);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user