1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-06 23:54:43 +02:00

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

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