static bool HandleBattlefieldTimer(ChatHandler* handler, const char* args) { uint32 battleid = 0; uint32 time = 0; char* battleid_str = strtok((char*)args, " "); if (!battleid_str) return false; char* time_str = strtok(nullptr, " "); if (!time_str) return false; battleid = atoi(battleid_str); time = atoi(time_str); Battlefield* bf = sBattlefieldMgr->GetBattlefieldByBattleId(battleid); if (!bf) return false; bf->SetTimer(time * IN_MILLISECONDS); bf->SendInitWorldStatesToAll(); if (battleid == 1) handler->SendGlobalGMSysMessage("Wintergrasp (Command timer used)"); return true; }