Adonis admin preset uniform plugin not working

I’m trying to make a command that will give a player the uniform chosen. When a moderator does :uni <player> student it is meant to put the students uniform on them but nothing happens. I don’t get any errors, just nothing happens. I’ve tried putting Args.uniform, uniform and adding uniform to the line where the command function starts (function = plr,args,uniform) and for Args.uniform on the start of the if statements.

return function(Vargs, env)
	local server = Vargs.Server;
	local service = Vargs.Service;

	local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
		server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs, server.Remote, server.Process, server.Variables, server.Deps

	server.Commands.uni= {
		Prefix = server.Settings.Prefix;	-- Prefix to use for command
		Commands = {"uni"};	-- Commands
		Args = {"player"; "uniform"};	-- Command arguments
		Description = "Changes the player's uniform to the graduation uniform.";	-- Command Description
		Hidden = false; -- Is it hidden from the command list?
		Fun = false;	-- Is it fun?
		AdminLevel = "Moderators";	    -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas")
		Function = function(plr, Args, uniform)    -- Function to run for command
			if uniform == "grad" then
				local ClothingIds = 7151738144
				local ClothingId = 7151739118
				local AssetIdType = service.MarketPlace:GetProductInfo(ClothingId).AssetTypeId
				local Pants = AssetIdType == 12 and service.Insert(ClothingId) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Pants", ClothingId) or error("Item ID passed has invalid item type")
				local AssetIdType = service.MarketPlace:GetProductInfo(ClothingIds).AssetTypeId
				local Shirt = AssetIdType == 11 and service.Insert(ClothingIds) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Shirt", ClothingId) or error("Item ID passed has invalid item type")
				if Shirt then
					for i,v in pairs(service.GetPlayers(plr)) do
						if v.Character then
							for g,k in pairs(v.Character:GetChildren()) do
								if k:IsA("Shirt") then k:Destroy() end
							end
							Shirt:Clone().Parent = v.Character
						end
					end
					if Pants then
						for i,v in pairs(service.GetPlayers(plr)) do
							if v.Character then
								for g,k in pairs(v.Character:GetChildren()) do
									if k:IsA("Pants") then k:Destroy() end
								end
								Pants:Clone().Parent = v.Character
							else
								error("Unexpected error occured. Clothing is missing")
							end
						end
					end
				end
			
			else if uniform == "spec" then
					local ClothingIds = 7120419190
					local ClothingId = 7151739118
					local AssetIdType = service.MarketPlace:GetProductInfo(ClothingId).AssetTypeId
					local Pants = AssetIdType == 12 and service.Insert(ClothingId) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Pants", ClothingId) or error("Item ID passed has invalid item type")
					local AssetIdType = service.MarketPlace:GetProductInfo(ClothingIds).AssetTypeId
					local Shirt = AssetIdType == 11 and service.Insert(ClothingIds) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Shirt", ClothingId) or error("Item ID passed has invalid item type")
					if Shirt then
						for i,v in pairs(service.GetPlayers(plr)) do
							if v.Character then
								for g,k in pairs(v.Character:GetChildren()) do
									if k:IsA("Shirt") then k:Destroy() end
								end
								Shirt:Clone().Parent = v.Character
							end
						end
						if Pants then
							for i,v in pairs(service.GetPlayers(plr)) do
								if v.Character then
									for g,k in pairs(v.Character:GetChildren()) do
										if k:IsA("Pants") then k:Destroy() end
									end
									Pants:Clone().Parent = v.Character
								else
									error("Unexpected error occured. Clothing is missing")
								end
							end
						end
					end
				else if uniform == "student" then
						local ClothingIds = 6286636935
						local ClothingId = 7151739118
						local AssetIdType = service.MarketPlace:GetProductInfo(ClothingId).AssetTypeId
						local Pants = AssetIdType == 12 and service.Insert(ClothingId) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Pants", ClothingId) or error("Item ID passed has invalid item type")
						local AssetIdType = service.MarketPlace:GetProductInfo(ClothingIds).AssetTypeId
						local Shirt = AssetIdType == 11 and service.Insert(ClothingIds) or AssetIdType == 1 and Functions.CreateClothingFromImageId("Shirt", ClothingId) or error("Item ID passed has invalid item type")
						if Shirt then
							for i,v in pairs(service.GetPlayers(plr)) do
								if v.Character then
									for g,k in pairs(v.Character:GetChildren()) do
										if k:IsA("Shirt") then k:Destroy() end
									end
									Shirt:Clone().Parent = v.Character
								end
							end
							if Pants then
								for i,v in pairs(service.GetPlayers(plr)) do
									if v.Character then
										for g,k in pairs(v.Character:GetChildren()) do
											if k:IsA("Pants") then k:Destroy() end
										end
										Pants:Clone().Parent = v.Character
									else
										error("Unexpected error occured. Clothing is missing")
									end
								end
							end
						end
					end
				end
			end
		end
	}
end