use of me.xnuminousx.spirits.ability.dark.Strike in project Spirits by xNuminousx.
the class AbilityListener method onSwing.
@EventHandler
public void onSwing(PlayerAnimationEvent event) {
Player player = event.getPlayer();
BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);
if (event.isCancelled() || bPlayer == null) {
return;
} else if (bPlayer.getBoundAbilityName().equalsIgnoreCase(null)) {
return;
} else if (bPlayer.getBoundAbilityName().equalsIgnoreCase("Agility")) {
new Dash(player);
} else if (bPlayer.getBoundAbilityName().equalsIgnoreCase("Shackle")) {
new Shackle(player);
} else if (bPlayer.getBoundAbilityName().equalsIgnoreCase("Shelter")) {
new Shelter(player, ShelterType.CLICK);
} else if (bPlayer.getBoundAbilityName().equalsIgnoreCase("Strike")) {
new Strike(player);
}
}
Aggregations