Fixed an issue with ASkills required skill stat

This commit is contained in:
Indyuce 2022-04-11 16:21:40 +02:00
parent 54cb4a791f
commit 25ba03ca61

View File

@ -136,7 +136,7 @@ public class AureliumSkillsHook implements RPGHandler, Listener {
if (skillLevel < required && !player.getPlayer().hasPermission("mmoitems.bypass.level")) { if (skillLevel < required && !player.getPlayer().hasPermission("mmoitems.bypass.level")) {
if (message) { if (message) {
Message.NOT_ENOUGH_PROFESSION.format(ChatColor.RED, "profession", skill.getDisplayName(Locale.getDefault())).send(player.getPlayer()); Message.NOT_ENOUGH_PROFESSION.format(ChatColor.RED, "#profession#", skill.getDisplayName(Locale.getDefault())).send(player.getPlayer());
player.getPlayer().playSound(player.getPlayer().getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 1.5f); player.getPlayer().playSound(player.getPlayer().getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 1.5f);
} }
return false; return false;