#include "../client.h" void command_timers(Client *c, const Seperator *sep) { auto target = c; if (c->GetTarget() && c->GetTarget()->IsClient()) { target = c->GetTarget()->CastToClient(); } std::vector> timers; target->GetPTimers().ToVector(timers); std::string popup_title = fmt::format( "Recast Timers for {}", c->GetTargetDescription(target, TargetDescriptionType::UCSelf) ); std::string popup_text = ""; popup_text += ""; for (const auto& timer : timers) { auto remaining_time = timer.second->GetRemainingTime(); if (remaining_time) { popup_text += fmt::format( "", timer.first, Strings::SecondsToTime(remaining_time) ); } } popup_text += "
Timer IDRemaining
{}{}
"; c->SendPopupToClient( popup_title.c_str(), popup_text.c_str() ); }