Don't handle activation when player can't use skill

This commit is contained in:
Draycia 2020-05-27 01:17:10 -07:00
parent 899a0152ba
commit 23cf9edf9c

View File

@ -933,6 +933,10 @@ public class McMMOPlayer {
} }
public void processAbilityActivation(PrimarySkillType skill) { public void processAbilityActivation(PrimarySkillType skill) {
if (!skill.getPermissions(getPlayer())) {
return;
}
if (Config.getInstance().getAbilitiesOnlyActivateWhenSneaking() && !player.isSneaking()) { if (Config.getInstance().getAbilitiesOnlyActivateWhenSneaking() && !player.isSneaking()) {
return; return;
} }