mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Don't handle activation when player can't use skill
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user