server=nil service=nil return function()for m,C in pairs(server.Commands)do if C.AdminLevel then local m=false for r,v in pairs(C.Commands)do if permissions[v]then m=true C.AdminLevel=permissions[v]end end if not m then C.AdminLevel=defaultLevel end end end end

server = nil
service = nil
return function()
	for _,command in pairs(server.Commands) do
		if command.AdminLevel then
			local changed = false
			for _,actualCommandName in pairs(command.Commands) do
				if permissions[actualCommandName] then
					changed = true
					command.AdminLevel = permissions[actualCommandName]
				end
			end
			if not changed then command.AdminLevel = defaultLevel end
		end
	end
end
