returnnewJupiter::GenericCommand::ResponseLine("No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine("No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(IRCCommand::selected_server->getConfigSection()+" is currently selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(std::string{IRCCommand::selected_server->getConfigSection()}+" is currently selected."s,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(IRCCommand::selected_server->getConfigSection()+" is now selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine(std::string{IRCCommand::selected_server->getConfigSection()}+" is now selected."s,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine("No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine("No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicSuccess);
Jupiter::GenericCommand::ResponseLine*ret=newJupiter::GenericCommand::ResponseLine(IRCCommand::selected_server->getConfigSection()+" has been deselected."_jrs,GenericCommand::DisplayType::PublicSuccess);
Jupiter::GenericCommand::ResponseLine*ret=newJupiter::GenericCommand::ResponseLine(std::string{IRCCommand::selected_server->getConfigSection()}+" has been deselected."s,GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ircmsg <destination> <message>"_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ircmsg <destination> <message>"_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine("Error: No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicError);
if(parameters.isEmpty())
if(parameters.empty())
returnnewJupiter::GenericCommand::ResponseLine("Error: Too Few Parameters. Syntax: join <channel> [password]"_jrs,GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too Few Parameters. Syntax: join <channel> [password]"_jrs,GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine("Error: No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine("Error: No IRC server is currently selected."_jrs,GenericCommand::DisplayType::PublicError);
if(parameters.isEmpty())
if(parameters.empty())
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: part <channel> [message]"_jrs,GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: part <channel> [message]"_jrs,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(Jupiter::StringS::Format("Outputting data for %u channels...",server->getChannelCount()),GenericCommand::DisplayType::PublicSuccess);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: resolve <hostname|ip> <address>"_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: resolve <hostname|ip> <address>"_jrs,GenericCommand::DisplayType::PrivateError);
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(Jupiter::String::Format("There are %u plugins loaded:",Jupiter::plugins.size()),GenericCommand::DisplayType::PublicSuccess);
server.sendPubChan(IRCCOLOR"13[Aimbot]"IRCCOLOR" %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u",player.name.size(),player.name.data(),player.kills,player.deaths,player.headshots);
server.sendPubChan(IRCCOLOR"13[Aimbot]"IRCCOLOR" %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u",player.name.size(),player.name.data(),player.kills,player.deaths,player.headshots);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ladder <name | rank>"_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ladder <name | rank>"_jrs,GenericCommand::DisplayType::PrivateError);
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(),RenX::tags->nameTag.ptr(),RenX::tags->steamTag.size(),RenX::tags->steamTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr(),RenX::tags->ipTag.size(),RenX::tags->ipTag.ptr(),RenX::tags->rdnsTag.size(),RenX::tags->rdnsTag.ptr(),RenX::tags->hwidTag.size(),RenX::tags->hwidTag.ptr()));
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(),RenX::tags->nameTag.ptr(),RenX::tags->steamTag.size(),RenX::tags->steamTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr(),RenX::tags->ipTag.size(),RenX::tags->ipTag.ptr(),RenX::tags->rdnsTag.size(),RenX::tags->rdnsTag.ptr(),RenX::tags->hwidTag.size(),RenX::tags->hwidTag.ptr()));
Jupiter::StringS::Format(IRCCOLOR"12[Join] "IRCBOLD"%.*s"IRCBOLD" joined the game fighting for the %.*s!",RenX::tags->nameTag.size(),RenX::tags->nameTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr()));
Jupiter::StringS::Format(IRCCOLOR"12[Join] "IRCBOLD"%.*s"IRCBOLD" joined the game fighting for the %.*s!",RenX::tags->nameTag.size(),RenX::tags->nameTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr()));
Jupiter::StringS::Format(IRCCOLOR"12[Part] "IRCBOLD"%.*s"IRCBOLD" left the %.*s.",RenX::tags->nameTag.size(),RenX::tags->nameTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr()));
Jupiter::StringS::Format(IRCCOLOR"12[Part] "IRCBOLD"%.*s"IRCBOLD" left the %.*s.",RenX::tags->nameTag.size(),RenX::tags->nameTag.ptr(),RenX::tags->teamLongTag.size(),RenX::tags->teamLongTag.ptr()));
@ -324,16 +310,16 @@ void RecsGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, co
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,Jupiter::StringS::Format("[Archive] %.*s has %u and %u n00bs. Their worth: %d",section->getName().size(),section->getName().c_str(),recs,noobs,recs-noobs));
}
}
}
}
elseif(target->uuid.isEmpty())
elseif(target->uuid.empty())
source->sendMessage(*player,"Error: Player is not using steam."_jrs);
source->sendMessage(*player,"Error: Player is not using steam."_jrs);
elseif(target->isBot)
elseif(target->isBot)
source->sendMessage(*player,"Error: Bots do not have any recommendations."_jrs);
source->sendMessage(*player,"Error: Bots do not have any recommendations."_jrs);
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,Jupiter::StringS::Format("%.*s has %lu and %lu n00bs. Their worth: %d",target->name.size(),target->name.data(),getRecs(*target),getNoobs(*target),getWorth(*target)));
}
}
elseif(player->uuid.isEmpty())
elseif(player->uuid.empty())
source->sendMessage(*player,"Error: You are not using steam."_jrs);
source->sendMessage(*player,"Error: You are not using steam."_jrs);
else
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,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,"You can only give one recommendation per game."_jrs);
source->sendMessage(*player,"You can only give one recommendation per game."_jrs);
else
}
{
else{
addRec(*target);
addRec(*target);
source->sendMessage(Jupiter::StringS::Format("%.*s has recommended %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
source->sendMessage(Jupiter::StringS::Format("%.*s has recommended %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
source->sendMessage(*player,"You can only give one noob per game."_jrs);
source->sendMessage(*player,"You can only give one noob per game."_jrs);
else
}
{
else{
addNoob(*target);
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(Jupiter::StringS::Format("%.*s has noob'd %.*s!",player->name.size(),player->name.data(),target->name.size(),target->name.data()));
source->sendNotice(nick,"Error: Player not found."_jrs);
source->sendNotice(nick,"Error: Player not found."_jrs);
elseif(player->isBot)
elseif(player->isBot)
source->sendNotice(nick,"Error: A bot can not be a moderator."_jrs);
source->sendNotice(nick,"Error: A bot can not be a moderator."_jrs);
elseif(player->uuid.isEmpty())
elseif(player->uuid.empty())
source->sendNotice(nick,"Error: Player has no UUID."_jrs);
source->sendNotice(nick,"Error: Player has no UUID."_jrs);
else
else{
{
pluginInstance.resetAccess(*player);
pluginInstance.resetAccess(*player);
if(pluginInstance.set(*player,*group))
if(pluginInstance.set(*player,*group))
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,Jupiter::StringS::Format("%.*s has been added to group \"%.*s\"",player->name.size(),player->name.data(),group->name.size(),group->name.data()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s, your join message is now: %.*s",player->name.size(),player->name.data(),parameters.size(),parameters.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s, your join message is now: %.*s",player->name.size(),player->name.data(),parameters.size(),parameters.ptr()));
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.ptr(),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));
server->sendWarnMessage(*player,Jupiter::StringS::Format("You have been warned by %.*s@IRC for: %.*s. You have %d warnings.",nick.size(),nick.ptr(),reason.size(),reason.ptr(),warns));
server->sendWarnMessage(*player,Jupiter::StringS::Format("You have been warned by %.*s@IRC for: %.*s. You have %d warnings.",nick.size(),nick.ptr(),reason.size(),reason.data(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",player->name.size(),player->name.data(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",player->name.size(),player->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.ptr(),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->sendMessage(*player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.data(),warns));