local H=game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")local u=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local z=require(H:WaitForChild("\078\101\120\117\115\065\100\109\105\110"))local A=u:WaitForChild("\078\101\120\117\115\065\100\109\105\110\084\121\112\101\115")local Z=script.Parent:WaitForChild("\067\108\105\101\110\116\084\121\112\101\115\076\111\097\100\101\114")local W=script.Parent:WaitForChild("\067\111\109\109\097\110\100\115")for H,u in pairs(A:GetChildren())do if u:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then(require(u))(z)end end for H,u in pairs(W:GetChildren())do if u:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then local H=require(u)H.Prefix=z.Configuration.CommandPrefix H.Category="\071\097\109\101\067\111\109\109\097\110\100\115"H.AdminLevel=2 z.Registry:LoadCommand(H)end end z.Replicator:GiveStarterScript(Z)return true
--[[
TheNexusAvenger

Loads the game commands and types.
--]]

local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local NexusAdminAPI = require(ServerScriptService:WaitForChild("NexusAdmin"))
local NexusAdminTypes = ReplicatedStorage:WaitForChild("NexusAdminTypes")
local ClientTypesLoader = script.Parent:WaitForChild("ClientTypesLoader")
local Commands = script.Parent:WaitForChild("Commands")



--Load the types.
for _,Module in pairs(NexusAdminTypes:GetChildren()) do
    if Module:IsA("ModuleScript") then
        require(Module)(NexusAdminAPI)
    end
end

--Loads the commands.
for _,Module in pairs(Commands:GetChildren()) do
    if Module:IsA("ModuleScript") then
        local CommandData = require(Module)
        CommandData.Prefix = NexusAdminAPI.Configuration.CommandPrefix
        CommandData.Category = "GameCommands"
        CommandData.AdminLevel = 2
        NexusAdminAPI.Registry:LoadCommand(CommandData)
    end
end



--Load the types on the client.
NexusAdminAPI.Replicator:GiveStarterScript(ClientTypesLoader)

--Return true so that it doesn't error.
return true