package swagYolo
{
function serverCmdMessageSent(%client,%msg)
{
if($pref::server::Swag)
{
%count = getWordCount(%msg);
for(%i=0;%i<%count;%i++)
{
if(getRandom() > 0.5)
%str = trim(%str SPC "swag");
else
%str = trim(%str SPC "yolo");
}
%msg = %str;
}
parent::serverCmdMessageSent(%client,%msg);
}
};activatepackage(swagYolo);
function serverCmdToggleSwag(%client)
{
if(!%client.isAdmin)
return;
$pref::server::Swag = !$pref::server::Swag;
if($pref::server::Swag)
talk(%client.name @ " enabled swag.");
else
talk(%client.name @ " disabled swag.");
}