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()));
@ -293,6 +296,8 @@ void RecsGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, co
}
}
elseif(target->uuid.isEmpty())
elseif(target->uuid.isEmpty())
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
elseif(target->isBot)
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Bots do not have any recommendations."));
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)));
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)));
@ -329,6 +334,8 @@ void RecGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, con
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player not found! Syntax: rec <player>"));
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player not found! Syntax: rec <player>"));
elseif(target->uuid.isEmpty())
elseif(target->uuid.isEmpty())
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
elseif(target->isBot)
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Bots can not receive recommendations."));
elseif(target==player)
elseif(target==player)
{
{
addNoob(player);
addNoob(player);
@ -373,6 +380,8 @@ void NoobGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, co
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player not found! Syntax: noob [player]"));
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player not found! Syntax: noob [player]"));
elseif(target->uuid.isEmpty())
elseif(target->uuid.isEmpty())
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Player is not using steam."));
elseif(target->isBot)
source->sendMessage(player,STRING_LITERAL_AS_REFERENCE("Error: Bots can not receive n00bs."));