From 23cf9edf9c60ef4477c9943b885f25d9c0bc178e Mon Sep 17 00:00:00 2001 From: Draycia Date: Wed, 27 May 2020 01:17:10 -0700 Subject: [PATCH] Don't handle activation when player can't use skill --- .../java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java index 6fcae8bdd..d848d98d9 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java @@ -933,6 +933,10 @@ public class McMMOPlayer { } public void processAbilityActivation(PrimarySkillType skill) { + if (!skill.getPermissions(getPlayer())) { + return; + } + if (Config.getInstance().getAbilitiesOnlyActivateWhenSneaking() && !player.isSneaking()) { return; }