ASS mod help new command

Hi i know that ASS mod hasn’t got a remove owner command but we need to get rid ofa owner on the server (it’s me) so i wrote this and im pretty sure it might work take a look for your self (whats the code snipet thing tell me then ill fix it up)

concommand.Add( “ASS_TakeOwnership”,
function(pl, cmd, args)
if (pl:HasLevel(ASS_LVL_SUPER_ADMIN)) then

			local other = ASS_FindPlayer(args[1])
			
			if (!other || !other:IsValid()) then
				ASS_MessagePlayer(pl, "Invalid Player!")
				return
			end
			
			if (other != pl) then
				other:SetLevel( ASS_LVL_SUPER_ADMIN )
				ASS_SaveRankings();

				ASS_MessagePlayer(pl, "Ownership Taken!")
			else
				ASS_MessagePlayer(pl, "You're still a owner!")
			end
		else
			ASS_MessagePlayer(pl, "Access Denied!")
		end
	end	
)

thanks for taking a look

[lua ] [/lua ]