use of com.github.sirblobman.combatlogx.api.manager.ITimerManager in project CombatLogX by SirBlobman.
the class CombatManager method untag.
@Override
public void untag(Player player, UntagReason untagReason) {
Validate.notNull(player, "player must not be null!");
Validate.notNull(untagReason, "untagReason must not be null!");
if (!isInCombat(player)) {
return;
}
UUID uuid = player.getUniqueId();
this.combatMap.remove(uuid);
ITimerManager timerManager = this.plugin.getTimerManager();
timerManager.remove(player);
LivingEntity previousEnemy = this.enemyMap.remove(uuid);
PlayerUntagEvent event = new PlayerUntagEvent(player, untagReason, previousEnemy);
PluginManager pluginManager = Bukkit.getPluginManager();
pluginManager.callEvent(event);
}
use of com.github.sirblobman.combatlogx.api.manager.ITimerManager in project CombatLogX by SirBlobman.
the class ActionBarExpansion method onEnable.
@Override
public void onEnable() {
ICombatLogX plugin = getPlugin();
int minorVersion = VersionUtility.getMinorVersion();
if (minorVersion < 8) {
Logger logger = getLogger();
logger.warning("This expansion requires Spigot 1.8.8 or higher.");
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
ITimerManager timerManager = plugin.getTimerManager();
timerManager.addUpdaterTask(new ActionBarUpdater(this));
}
use of com.github.sirblobman.combatlogx.api.manager.ITimerManager in project CombatLogX by SirBlobman.
the class ScoreboardExpansion method onEnable.
@Override
public void onEnable() {
ICombatLogX plugin = getPlugin();
ITimerManager timerManager = plugin.getTimerManager();
timerManager.addUpdaterTask(new ScoreboardUpdater(this));
}
use of com.github.sirblobman.combatlogx.api.manager.ITimerManager in project CombatLogX by SirBlobman.
the class BossBarExpansion method onEnable.
@Override
public void onEnable() {
ICombatLogX plugin = getPlugin();
ITimerManager timerManager = plugin.getTimerManager();
timerManager.addUpdaterTask(new BossBarUpdater(this));
}
Aggregations