This little punk bit of code crashes blockland when used.
This is the whole thing
function serverCmdKick(%client, %playername)
{
// The host kick works fine so I'm ignoring it
if(isHost(%client)) // Skip the crap below if host
{
serverCmdKick(%client, findclientbyname(%playername));
}
if(%client.isModerator || %client.isAdmin || %client.isSuperAdmin)
{
%player = findClientByName(%playername);
if(%player.isModerator || %player.isAdmin || %player.isSuperAdmin) // If the player is staff, don't kick
{return messageClient(%client,'',"\c6You can't kick that player!");}
serverCmdKick(%client, findclientbyname(%playername));
}
}
This part in specific is what I think is causing the problem, but why it is I don't know
if(%client.isModerator || %client.isAdmin || %client.isSuperAdmin) // if client is staff continue
{
%player = findClientByName(%playername);
if(%player.isModerator || %player.isAdmin || %player.isSuperAdmin) // If the player is staff, don't kick
{return messageClient(%client,'',"\c6You can't kick that player!");}
serverCmdKick(%client, findclientbyname(%playername));
}