forked from Upstream/mmocore
!Skill max level bug fix
This commit is contained in:
parent
7baf3dfff3
commit
72a304c470
@ -393,7 +393,7 @@ public class SkillList extends EditableInventory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerData.getSkillLevel(selected.getSkill()) >= selected.getMaxLevel()) {
|
if (selected.hasMaxLevel() && playerData.getSkillLevel(selected.getSkill()) >= selected.getMaxLevel()) {
|
||||||
MMOCore.plugin.configManager.getSimpleMessage("skill-max-level-hit").send(player);
|
MMOCore.plugin.configManager.getSimpleMessage("skill-max-level-hit").send(player);
|
||||||
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user