Are you sure?
I thought it would be in the format of
function SWATspawnPointData::onAdd(%this,%obj)
{
%client = %obj.getGroup().client;
if(%client.isAdmin || %client.isSuperAdmin)
{
$SWATSpawn = %obj.getTransform();
Parent::onPlant(%this,%obj);
}
else
{
%obj.delete();
}
}
where %this is the datablock and %obj is the brick.