So since I don't understand github enough to make a pull request, nor do I have the pk code, I'll make this suggestion here.
This would add a method to GeneralMethods:
public static boolean isUsingSneakAbility(Player player)
to make this work (and devs help me here), there would be an "ArrayList<Player> sneaking" in GeneralMethods, and whenever a player is sneaking to use an ability, if and only if the ability doesn't return null, they would be put into the array list. They would be removed when they stop sneaking. The method itself would look like this:
Hope this is fully possible, and if it isn't I'm sure that the devs can figure something out that is similar to this.
Things this could be useful for would be something like a passive ability that uses sneak, where if the player is on an ability that uses sneak they could make it so the passive doesn't activate.
This would add a method to GeneralMethods:
public static boolean isUsingSneakAbility(Player player)
to make this work (and devs help me here), there would be an "ArrayList<Player> sneaking" in GeneralMethods, and whenever a player is sneaking to use an ability, if and only if the ability doesn't return null, they would be put into the array list. They would be removed when they stop sneaking. The method itself would look like this:
Code:
public static boolean isUsingSneakAbility(Player player) {
if (sneaking.contains(player)) {
return true;
}
return false:
}
Things this could be useful for would be something like a passive ability that uses sneak, where if the player is on an ability that uses sneak they could make it so the passive doesn't activate.