forked from Upstream/mmocore
Fixed level_skill_tree_node sound not working
This commit is contained in:
parent
da0e16f1b3
commit
bded64d44a
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user