use of com.github.sirblobman.combatlogx.api.event.PlayerPreTagEvent in project CombatLogX by SirBlobman.
the class CombatManager method failsPreTagEvent.
private boolean failsPreTagEvent(Player player, LivingEntity enemy, TagType tagType, TagReason tagReason) {
PlayerPreTagEvent event = new PlayerPreTagEvent(player, enemy, tagType, tagReason);
PluginManager pluginManager = Bukkit.getPluginManager();
pluginManager.callEvent(event);
return event.isCancelled();
}
Aggregations