source->sendMessage(channel,Jupiter::StringS::Format("%.2f%% (%u/%u) of players are using Steam.",((double)total*100)/((double)realPlayers),total,realPlayers));
elsesource->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("No players are in-game."));
else
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("No players are in-game."));
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All deployables (c4, beacons, etc) belonging to ")+RenX::getFormattedPlayerName(player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
if(server->disarm(*player))
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All deployables (c4, beacons, etc) belonging to ")+RenX::getFormattedPlayerName(*player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
else
source->sendMessage(channel,"Error: Server does not support disarms."_jrs);
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All C4 belonging to ")+RenX::getFormattedPlayerName(player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
if(server->disarmC4(*player))
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All C4 belonging to ")+RenX::getFormattedPlayerName(*player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
else
source->sendMessage(channel,"Error: Server does not support disarms."_jrs);
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All beacons belonging to ")+RenX::getFormattedPlayerName(player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
if(server->disarmBeacon(*player))
source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("All beacons belonging to ")+RenX::getFormattedPlayerName(*player)+STRING_LITERAL_AS_REFERENCE(IRCCOLOR" have been disarmed."));
else
source->sendMessage(channel,"Error: Server does not support disarms."_jrs);
source->sendMessage(player,Jupiter::StringS::Format("A total of %u %.*ss have been notified of your assistance request.",messageCount,staff_word.size(),staff_word.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("A total of %u %.*ss have been notified of your assistance request.",messageCount,staff_word.size(),staff_word.ptr()));
server->sendPubChan(IRCCOLOR"13[Aimbot]"IRCCOLOR" %.*s was banned from the server! Kills: %u - Deaths: %u - Headshots: %u",player->name.size(),player->name.ptr(),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.ptr(),player.kills,player.deaths,player.headshots);
server->sendMessage(Jupiter::StringS::Format("%.*s has been recommended for destroying the %.*s!",player->name.size(),player->name.ptr(),translated.size(),translated.ptr()));
server.sendMessage(Jupiter::StringS::Format("%.*s has been recommended for destroying the %.*s!",player.name.size(),player.name.ptr(),translated.size(),translated.ptr()));
source->sendMessage(player,Jupiter::StringS::Format("[Archive] %.*s has %u and %u n00bs. Their worth: %d",section->getName().size(),section->getName().ptr(),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().ptr(),recs,noobs,recs-noobs));
}
}
elseif(target->uuid.isEmpty())
source->sendMessage(player,"Error: Player is not using steam."_jrs);
source->sendMessage(*player,"Error: Player is not using steam."_jrs);
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);
elsesource->sendMessage(player,Jupiter::StringS::Format("%.*s has %lu and %lu n00bs. Their worth: %d",target->name.size(),target->name.ptr(),getRecs(target),getNoobs(target),getWorth(target)));
else
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has %lu and %lu n00bs. Their worth: %d",target->name.size(),target->name.ptr(),getRecs(*target),getNoobs(*target),getWorth(*target)));
}
elseif(player->uuid.isEmpty())
source->sendMessage(player,"Error: You are not using steam."_jrs);
elsesource->sendMessage(player,Jupiter::StringS::Format("%.*s, you have %lu recs and %lu n00bs. Your worth: %d",player->name.size(),player->name.ptr(),getRecs(player),getNoobs(player),getWorth(player)));
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.ptr(),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
{
addRec(target);
addRec(*target);
source->sendMessage(Jupiter::StringS::Format("%.*s has recommended %.*s!",player->name.size(),player->name.ptr(),target->name.size(),target->name.ptr()));
server->sendMessage(player,Jupiter::StringS::Format("You are now authenticated with access level %d; group: %.*s.",player->access,group->name.size(),group->name.ptr()));
if(server->isDevBot()&&player->access>1)
server.sendMessage(player,Jupiter::StringS::Format("You are now authenticated with access level %d; group: %.*s.",player.access,group->name.size(),group->name.ptr()));
server->sendLogChan(IRCCOLOR"03[Authentication] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" is now authenticated with access level %d; group: %.*s.",playerName.size(),playerName.ptr(),player->access,group->name.size(),group->name.ptr());
returnplayer->access;
server.sendLogChan(IRCCOLOR"03[Authentication] "IRCBOLD"%.*s"IRCBOLDIRCCOLOR" is now authenticated with access level %d; group: %.*s.",playerName.size(),playerName.ptr(),player.access,group->name.size(),group->name.ptr());
returnplayer.access;
};
if(forceAuth)
@ -211,46 +212,46 @@ int RenX_ModSystemPlugin::auth(RenX::Server *server, const RenX::PlayerInfo *pla
server->sendMessage(player,Jupiter::StringS::Format("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.ptr(),player->access));
server.sendMessage(player,Jupiter::StringS::Format("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.ptr(),player.access));
source->sendNotice(nick,"Error: Player has no UUID."_jrs);
else
{
pluginInstance.resetAccess(player);
if(pluginInstance.set(player,group))
pluginInstance.resetAccess(*player);
if(pluginInstance.set(*player,*group))
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been added to group \"%.*s\"",player->name.size(),player->name.ptr(),group->name.size(),group->name.ptr()));
else
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been moved to group \"%.*s\"",player->name.size(),player->name.ptr(),group->name.size(),group->name.ptr()));
source->sendMessage(player,Jupiter::StringS::Format("%.*s, your join message is now: %.*s",player->name.size(),player->name.ptr(),parameters.size(),parameters.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s, your join message is now: %.*s",player->name.size(),player->name.ptr(),parameters.size(),parameters.ptr()));
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.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.ptr(),warns));
server->sendMessage(player,Jupiter::StringS::Format("You have been warned by %.*s@IRC; improve your behavior, or you will be disciplined. You have %d warnings.",nick.size(),nick.ptr(),warns));
server->sendMessage(*player,Jupiter::StringS::Format("You have been warned by %.*s@IRC; improve your behavior, or you will be disciplined. You have %d warnings.",nick.size(),nick.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",player->name.size(),player->name.ptr(),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.ptr(),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.ptr(),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.ptr(),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.ptr(),warns));
source->sendMessage(target,Jupiter::StringS::Format("You have been warned by %.*s; improve your behavior, or you will be disciplined. You have %d warnings.",player->name.size(),player->name.ptr(),warns));
source->sendMessage(player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.ptr(),warns));
source->sendMessage(*target,Jupiter::StringS::Format("You have been warned by %.*s; improve your behavior, or you will be disciplined. You have %d warnings.",player->name.size(),player->name.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.ptr(),warns));
}
}
}
else
source->sendMessage(player,"Error: Too few parameters. Syntax: Warn <Player>"_jrs);
source->sendMessage(*player,"Error: Too few parameters. Syntax: Warn <Player>"_jrs);
source->sendMessage(target,Jupiter::StringS::Format("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.ptr()));
source->sendMessage(player,Jupiter::StringS::Format("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.ptr()));
source->sendMessage(*target,Jupiter::StringS::Format("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.ptr()));