mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-23 09:41:23 +01:00
Fixed skill upgrading gui
This commit is contained in:
parent
ede2991066
commit
29a88a59fe
@ -526,7 +526,7 @@ public class SkillList extends EditableInventory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if (context.getClickType().isShiftClick()) {
|
if (context.getClickType().isShiftClick()) {
|
||||||
if (playerData.getSkillPoints() < shiftCost) {
|
if (playerData.getSkillPoints() < shiftCost) {
|
||||||
MMOCore.plugin.configManager.getSimpleMessage("not-enough-skill-points-shift", "shift_points", "" + shiftCost).send(player);
|
MMOCore.plugin.configManager.getSimpleMessage("not-enough-skill-points-shift", "shift_points", "" + shiftCost).send(player);
|
||||||
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
||||||
@ -538,7 +538,7 @@ public class SkillList extends EditableInventory {
|
|||||||
} else {
|
} else {
|
||||||
playerData.giveSkillPoints(-1);
|
playerData.giveSkillPoints(-1);
|
||||||
playerData.setSkillLevel(selected.getSkill(), playerData.getSkillLevel(selected.getSkill()) + 1);
|
playerData.setSkillLevel(selected.getSkill(), playerData.getSkillLevel(selected.getSkill()) + 1);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
MMOCore.plugin.configManager.getSimpleMessage("upgrade-skill", "skill", selected.getSkill().getName(), "level",
|
MMOCore.plugin.configManager.getSimpleMessage("upgrade-skill", "skill", selected.getSkill().getName(), "level",
|
||||||
"" + playerData.getSkillLevel(selected.getSkill())).send(player);
|
"" + playerData.getSkillLevel(selected.getSkill())).send(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user