use of com.github.sirblobman.combatlogx.api.object.TimerUpdater in project CombatLogX by SirBlobman.
the class TimerUpdateTask method update.
private void update(Player player) {
ICombatManager combatManager = this.plugin.getCombatManager();
long timeLeftMillis = combatManager.getTimerLeftMillis(player);
if (timeLeftMillis <= 0L) {
return;
}
Set<TimerUpdater> timerUpdaterSet = getTimerUpdaters();
for (TimerUpdater timerUpdater : timerUpdaterSet) {
timerUpdater.update(player, timeLeftMillis);
}
}
Aggregations