Fixed level_skill_tree_node sound not working

This commit is contained in:
Jules 2024-05-24 18:46:40 -07:00
parent da0e16f1b3
commit bded64d44a
2 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@ public enum SoundEvent {
SELECT_CLASS,
LEVEL_ATTRIBUTE,
RESET_ATTRIBUTES,
RESET_SKILLS
,NOT_ENOUGH_POINTS,
RESET_SKILLS,
NOT_ENOUGH_POINTS,
CANCEL_QUEST,
START_QUEST,
CLOSE_LOOT_CHEST,

View File

@ -519,7 +519,7 @@ public class SkillTreeViewer extends EditableInventory {
if (playerData.canIncrementNodeLevel(node)) {
playerData.incrementNodeLevel(node);
ConfigMessage.fromKey("upgrade-skill-node", "skill-node", node.getName(), "level", "" + playerData.getNodeLevel(node)).send(player);
MMOCore.plugin.soundManager.getSound(SoundEvent.LEVEL_UP).playTo(getPlayer());
MMOCore.plugin.soundManager.getSound(SoundEvent.LEVEL_SKILL_TREE_NODE).playTo(getPlayer());
open();
} else if (playerData.getNodeStatus(node) == SkillTreeStatus.LOCKED || playerData.getNodeStatus(node) == SkillTreeStatus.FULLY_LOCKED) {
ConfigMessage.fromKey("locked-node").send(player);