Search in sources :

Example 1 with PlayerPreTagEvent

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();
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) PlayerPreTagEvent(com.github.sirblobman.combatlogx.api.event.PlayerPreTagEvent)

Aggregations

PlayerPreTagEvent (com.github.sirblobman.combatlogx.api.event.PlayerPreTagEvent)1 PluginManager (org.bukkit.plugin.PluginManager)1