local H=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local u=require((H:WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101"))local z=u:GetResource("\083\101\114\118\105\099\101\046\073\110\118\101\110\116\111\114\121\083\101\114\118\105\099\101")return{Keyword="\103\105\118\101\105\116\101\109\115",Description="\071\105\118\101\115 \105\116\101\109\115 \116\111 \097 \115\101\116 \111\102 \112\108\097\121\101\114\115\046",Arguments={{Type="\110\101\120\117\115\065\100\109\105\110\080\108\097\121\101\114\115",Name="\080\108\097\121\101\114\115";Description="\080\108\097\121\101\114\115 \116\111 \103\105\118\101 \105\116\101\109\115\046"};{Type="\103\097\109\101\073\116\101\109\115",Name="\080\108\097\121\101\114\115",Description="\073\116\101\109\115 \116\111 \103\105\118\101\046"}};Run=function(H,u,A,Z)for H,u in pairs(A)do for H,A in pairs(Z)do z:AddItem(u,A)end end end}
--[[
TheNexusAvenger

Data for a command for giving items to players.
--]]

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ServerScriptServiceProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ServerScriptService"))
local InventoryService = ServerScriptServiceProject:GetResource("Service.InventoryService")



return {
    Keyword = "giveitems",
    Description = "Gives items to a set of players.",
    Arguments = {
        {
            Type = "nexusAdminPlayers",
            Name = "Players",
            Description = "Players to give items.",
        },
        {
            Type = "gameItems",
            Name = "Players",
            Description = "Items to give.",
        },
    },
    Run = function(self,CommandContext,Players,Items)
        for _,Player in pairs(Players) do
            for _,Item in pairs(Items) do
                InventoryService:AddItem(Player,Item)
            end
        end
    end
}