returnnewJupiter::GenericCommand::ResponseLine(Jupiter::StringS::Format("All %u objects were successfully rehashed.",Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(string_printf("All %u objects were successfully rehashed.",Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(Jupiter::StringS::Format("%u of %u objects failed to successfully rehash.",hash_errors,Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine(string_printf("%u of %u objects failed to successfully rehash.",hash_errors,Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicError);
line->next=newJupiter::GenericCommand::ResponseLine(Jupiter::StringS::Format("Outputting data for %u channels...",server->getChannelCount()),GenericCommand::DisplayType::PublicSuccess);
line->next=newJupiter::GenericCommand::ResponseLine(string_printf("Outputting data for %u channels...",server->getChannelCount()),GenericCommand::DisplayType::PublicSuccess);
Jupiter::GenericCommand::ResponseLine*line=result->set(Jupiter::String::Format("There are %u plugins loaded:",Jupiter::plugins.size()),GenericCommand::DisplayType::PublicSuccess);
Jupiter::GenericCommand::ResponseLine*line=result->set(string_printf("There are %u plugins loaded:",Jupiter::plugins.size()),GenericCommand::DisplayType::PublicSuccess);
source->sendMessage(channel,Jupiter::StringS::Format("%.2f%% (%u/%u) of players are using Steam.",((double)total*100)/((double)realPlayers),total,realPlayers));
source->sendMessage(channel,string_printf("%.2f%% (%u/%u) of players are using Steam.",((double)total*100)/((double)realPlayers),total,realPlayers));
else
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("No players are in-game."));
elsemsg.format("[RenX] ERROR: Failed to connect to %.*s on port %u."ENDL,server->getHostname().size(),server->getHostname().c_str(),server->getPort());
elsemsg=string_printf("[RenX] ERROR: Failed to connect to %.*s on port %u."ENDL,server->getHostname().size(),server->getHostname().c_str(),server->getPort());
source->sendMessage(channel,msg);
}
}
if(msg.empty())
{
if(msg.empty()){
// We didn't connect anywhere!!
msg.set("ERROR: No servers found to connect to.");
msg.aformat("; please use \"%.*s%.*s\" if you require assistance.",source->getCommandPrefix().size(),source->getCommandPrefix().data(),cmd->getTrigger().size(),cmd->getTrigger().data());
msg+=string_printf("; please use \"%.*s%.*s\" if you require assistance.",source->getCommandPrefix().size(),source->getCommandPrefix().data(),cmd->getTrigger().size(),cmd->getTrigger().data());
Jupiter::StringLuser_message=Jupiter::StringL::Format(IRCCOLOR"12[%.*s Request] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR"07 has requested assistance in-game for \"%.*s\"; please look in ",staff_word.size(),
Jupiter::StringLuser_message=string_printf(IRCCOLOR"12[%.*s Request] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR"07 has requested assistance in-game for \"%.*s\"; please look in ",staff_word.size(),
source->sendMessage(*player,Jupiter::StringS::Format("A total of %u %.*ss have been notified of your assistance request.",total_user_alerts,staff_word.size(),
source->sendMessage(*player,string_printf("A total of %u %.*ss have been notified of your assistance request.",total_user_alerts,staff_word.size(),
Jupiter::StringLuser_message=Jupiter::StringL::Format(IRCCOLOR"04[Alert] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR" is marked for monitoring by %.*s for: \"%.*s\". Please keep an eye on them in ",fmtName.size(),
std::stringuser_message=string_printf(IRCCOLOR"04[Alert] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR" is marked for monitoring by %.*s for: \"%.*s\". Please keep an eye on them in ",fmtName.size(),
Jupiter::StringSchannel_message=Jupiter::StringS::Format(IRCCOLOR"04[Alert] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR" is marked for monitoring by %.*s for: \"%.*s\"."IRCCOLOR,fmtName.size(),
std::stringchannel_message=string_printf(IRCCOLOR"04[Alert] "IRCCOLORIRCBOLD"%.*s"IRCBOLDIRCCOLOR" is marked for monitoring by %.*s for: \"%.*s\"."IRCCOLOR,fmtName.size(),
// TODO: make the time formatting not complete nonsense
forceKickPlayer(player,Jupiter::StringS::Format("You are banned from %.*s by %.*s for the next %lld days, %.2d:%.2d:%.2d for: %.*s",m_ban_from_str.size(),
forceKickPlayer(player,string_printf("You are banned from %.*s by %.*s for the next %lld days, %.2d:%.2d:%.2d for: %.*s",m_ban_from_str.size(),
Jupiter::StringS::Format(IRCCOLOR"12[Join] "IRCBOLD"%.*s"IRCBOLD" ("IRCBOLD"%.*s"IRCBOLD") joined the game fighting for the %.*s from "IRCBOLD"%.*s"IRCBOLD" ("IRCBOLD"%.*s"IRCBOLD") with HWID "IRCBOLD"%.*s"IRCBOLD".",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"12[Join] "IRCBOLD"%.*s"IRCBOLD" ("IRCBOLD"%.*s"IRCBOLD") joined the game fighting for the %.*s from "IRCBOLD"%.*s"IRCBOLD" ("IRCBOLD"%.*s"IRCBOLD") with HWID "IRCBOLD"%.*s"IRCBOLD".",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"04[Kick] "IRCBOLD"%.*s"IRCCOLORIRCBOLD" was "IRCBOLDIRCCOLOR"04kicked"IRCCOLORIRCBOLD" ("IRCCOLOR"04%.*s"IRCCOLOR")",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"04[Kick] "IRCBOLD"%.*s"IRCCOLORIRCBOLD" was "IRCBOLDIRCCOLOR"04kicked"IRCCOLORIRCBOLD" ("IRCCOLOR"04%.*s"IRCCOLOR")",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCBOLD"%.*s"IRCCOLORIRCBOLD" is "IRCCOLOR"04over-mining"IRCCOLOR": "IRCBOLDIRCCOLOR"12%.*s"IRCBOLD,RenX::tags->nameTag.size(),
string_printf(IRCBOLD"%.*s"IRCCOLORIRCBOLD" is "IRCCOLOR"04over-mining"IRCCOLOR": "IRCBOLDIRCCOLOR"12%.*s"IRCBOLD,RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed the "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
string_printf(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed the "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed a "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
string_printf(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed a "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed a "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
string_printf(IRCCOLOR"%.*s%.*s"IRCCOLOR" destroyed a "IRCCOLOR"%.*s%.*s"IRCCOLOR" ("IRCCOLOR"12%.*s"IRCCOLOR").",RenX::tags->teamColorTag.size(),
Jupiter::StringS::Format(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up "IRCCOLOR"09%.*s credits"IRCCOLOR" from a "IRCCOLOR"12money"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
string_printf(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up "IRCCOLOR"09%.*s credits"IRCCOLOR" from a "IRCCOLOR"12money"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up a "IRCCOLOR"%.*s%.*s"IRCCOLOR""IRCCOLOR"12character"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
string_printf(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up a "IRCCOLOR"%.*s%.*s"IRCCOLOR""IRCCOLOR"12character"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up a "IRCCOLOR"%.*s%.*s"IRCCOLOR""IRCCOLOR"12spy"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
string_printf(IRCBOLD"%.*s"IRCCOLORIRCBOLD" picked up a "IRCCOLOR"%.*s%.*s"IRCCOLOR""IRCCOLOR"12spy"IRCCOLOR" crate.",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCBOLD"%.*s"IRCCOLORIRCBOLD" has been "IRCBOLDIRCCOLOR"06abducted"IRCCOLORIRCBOLD" by the "IRCBOLDIRCCOLOR"06Scrin"IRCCOLORIRCBOLD"!",RenX::tags->nameTag.size(),
string_printf(IRCBOLD"%.*s"IRCCOLORIRCBOLD" has been "IRCBOLDIRCCOLOR"06abducted"IRCCOLORIRCBOLD" by the "IRCBOLDIRCCOLOR"06Scrin"IRCCOLORIRCBOLD"!",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"03[Game]"IRCCOLOR"10 The battle ended in a "IRCBOLD"%.*s"IRCBOLD" - Victory handed to "IRCBOLDIRCCOLOR"%.*s%.*s"IRCBOLD,RenX::tags->messageTag.size(),
string_printf(IRCCOLOR"03[Game]"IRCCOLOR"10 The battle ended in a "IRCBOLD"%.*s"IRCBOLD" - Victory handed to "IRCBOLDIRCCOLOR"%.*s%.*s"IRCBOLD,RenX::tags->messageTag.size(),
Jupiter::StringS::Format(IRCCOLOR"07[Admin] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" logged in with "IRCCOLOR"07"IRCBOLD"%.*s"IRCBOLDIRCNORMAL" privledges.",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"07[Admin] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" logged in with "IRCCOLOR"07"IRCBOLD"%.*s"IRCBOLDIRCNORMAL" privledges.",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"07[Admin] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" logged out of their "IRCCOLOR"07"IRCBOLD"%.*s"IRCBOLDIRCNORMAL" privledges.",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"07[Admin] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" logged out of their "IRCCOLOR"07"IRCBOLD"%.*s"IRCBOLDIRCNORMAL" privledges.",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"[Vote] "IRCBOLD"%.*s"IRCNORMAL" has called for adding "IRCCOLOR"12%.*s"IRCCOLOR" bots to %.*s, with skill level "IRCCOLOR"07%.*s"IRCCOLOR".",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"[Vote] "IRCBOLD"%.*s"IRCNORMAL" has called for adding "IRCCOLOR"12%.*s"IRCCOLOR" bots to %.*s, with skill level "IRCCOLOR"07%.*s"IRCCOLOR".",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s[Vote] "IRCBOLD"%.*s"IRCBOLD" has called for a Mine Ban against %.*s"IRCNORMAL".",RenX::tags->victimTeamColorTag.size(),
string_printf(IRCCOLOR"%.*s[Vote] "IRCBOLD"%.*s"IRCBOLD" has called for a Mine Ban against %.*s"IRCNORMAL".",RenX::tags->victimTeamColorTag.size(),
Jupiter::StringS::Format(IRCCOLOR"[Vote] "IRCBOLD"%.*s"IRCNORMAL" has called a vote to remove "IRCCOLOR"12%.*s"IRCCOLOR" bots from "IRCCOLOR"%.*s%.*s"IRCNORMAL".",RenX::tags->nameTag.size(),
string_printf(IRCCOLOR"[Vote] "IRCBOLD"%.*s"IRCNORMAL" has called a vote to remove "IRCCOLOR"12%.*s"IRCCOLOR" bots from "IRCCOLOR"%.*s%.*s"IRCNORMAL".",RenX::tags->nameTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s[Vote] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR"%.*s has started a Survey: "IRCCOLOR"12%.*s",RenX::tags->victimTeamColorTag.size(),
string_printf(IRCCOLOR"%.*s[Vote] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR"%.*s has started a Survey: "IRCCOLOR"12%.*s",RenX::tags->victimTeamColorTag.size(),
Jupiter::StringS::Format(IRCCOLOR"%.*s[Vote] A vote for \"%.*s\" was "IRCBOLDIRCCOLOR"07cancelled"IRCCOLORIRCBOLD".",RenX::tags->victimTeamColorTag.size(),
string_printf(IRCCOLOR"%.*s[Vote] A vote for \"%.*s\" was "IRCBOLDIRCCOLOR"07cancelled"IRCCOLORIRCBOLD".",RenX::tags->victimTeamColorTag.size(),
Jupiter::StringS::Format(IRCCOLOR"03Renegade X RCON connection established; using RCON verison "IRCBOLD"%.*s"IRCBOLD" for game version "IRCBOLD"%.*s"IRCBOLD,RenX::tags->rconVersionTag.size(),
string_printf(IRCCOLOR"03Renegade X RCON connection established; using RCON verison "IRCBOLD"%.*s"IRCBOLD" for game version "IRCBOLD"%.*s"IRCBOLD,RenX::tags->rconVersionTag.size(),
server.sendMessage(Jupiter::StringS::Format("%.*s has been recommended for destroying the %.*s!",player.name.size(),player.name.data(),translated.size(),translated.data()));
server.sendMessage(string_printf("%.*s has been recommended for destroying the %.*s!",player.name.size(),player.name.data(),translated.size(),translated.data()));
}
}
@ -307,7 +307,7 @@ void RecsGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, st
source->sendMessage(*player,Jupiter::StringS::Format("[Archive] %.*s has %u and %u n00bs. Their worth: %d",section->getName().size(),section->getName().c_str(),recs,noobs,recs-noobs));
source->sendMessage(*player,string_printf("[Archive] %.*s has %u and %u n00bs. Their worth: %d",section->getName().size(),section->getName().c_str(),recs,noobs,recs-noobs));
}
}
elseif(target->uuid.empty())
@ -317,12 +317,12 @@ void RecsGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, st
elseif(target==player)
RecsGameCommand::trigger(source,player,""_jrs);
else
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has %lu and %lu n00bs. Their worth: %d",target->name.size(),target->name.data(),getRecs(*target),getNoobs(*target),getWorth(*target)));
source->sendMessage(*player,string_printf("%.*s has %lu and %lu n00bs. Their worth: %d",target->name.size(),target->name.data(),getRecs(*target),getNoobs(*target),getWorth(*target)));
}
elseif(player->uuid.empty())
source->sendMessage(*player,"Error: You are not using steam."_jrs);
else
source->sendMessage(*player,Jupiter::StringS::Format("%.*s, you have %lu recs and %lu n00bs. Your worth: %d",player->name.size(),player->name.data(),getRecs(*player),getNoobs(*player),getWorth(*player)));
source->sendMessage(*player,string_printf("%.*s, you have %lu recs and %lu n00bs. Your worth: %d",player->name.size(),player->name.data(),getRecs(*player),getNoobs(*player),getWorth(*player)));
source->sendMessage(Jupiter::StringS::Format("%.*s has recommended %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
source->sendMessage(string_printf("%.*s has recommended %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
@ -410,7 +410,7 @@ void NoobGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, st
}
else{
addNoob(*target);
source->sendMessage(Jupiter::StringS::Format("%.*s has noob'd %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
source->sendMessage(string_printf("%.*s has noob'd %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
server.sendMessage(player,Jupiter::StringS::Format("You are now authenticated with access level %d; group: %.*s.",player.access,group->name.size(),group->name.data()));
server.sendMessage(player,string_printf("You are now authenticated with access level %d; group: %.*s.",player.access,group->name.size(),group->name.data()));
server.sendMessage(player,Jupiter::StringS::Format("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.data(),player.access));
server.sendMessage(player,string_printf("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.data(),player.access));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been added to group \"%.*s\"",player->name.size(),player->name.data(),group->name.size(),group->name.data()));
source->sendNotice(nick,string_printf("%.*s has been added to group \"%.*s\"",player->name.size(),player->name.data(),group->name.size(),group->name.data()));
else
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been moved to group \"%.*s\"",player->name.size(),player->name.data(),group->name.size(),group->name.data()));
source->sendNotice(nick,string_printf("%.*s has been moved to group \"%.*s\"",player->name.size(),player->name.data(),group->name.size(),group->name.data()));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.data(),warns));
source->sendNotice(nick,string_printf("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.data(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.data(),reason.size(),reason.data(),warns));
source->sendNotice(nick,string_printf("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.data(),reason.size(),reason.data(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.data(),warns));
source->sendMessage(*player,string_printf("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.data(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.data(),warns));
source->sendMessage(*player,string_printf("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.data(),warns));
source->sendWarnMessage(*target,Jupiter::StringS::Format("You have been warned by %.*s for: %.*s. You have %d warnings.",player->name.size(),player->name.data(),reason.size(),reason.data(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.data(),warns));
source->sendWarnMessage(*target,string_printf("You have been warned by %.*s for: %.*s. You have %d warnings.",player->name.size(),player->name.data(),reason.size(),reason.data(),warns));
source->sendMessage(*player,string_printf("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.data(),warns));
source->sendMessage(*target,Jupiter::StringS::Format("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.data()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.data()));
source->sendMessage(*target,string_printf("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.data()));
source->sendMessage(*player,string_printf("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.data()));