function Registry.RegisterCommandsIn(S,z,x)local g={}local J={}for D,j in pairs(z:GetChildren())do if j:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then if not j.Name:find("\083\101\114\118\101\114")then local g=z:FindFirstChild(j.Name.."\083\101\114\118\101\114")if g then J[g]=true end S:RegisterCommand(j,g,x)else g[j]=true end else S:RegisterCommandsIn(j,x)end end for z in pairs(g)do if not J[z]then warn("\067\111\109\109\097\110\100 \115\099\114\105\112\116 "..(z.Name.." \119\097\115 \115\107\105\112\112\101\100 \098\101\099\097\117\115\101 \105\116 \104\097\115 \'\083\101\114\118\101\114\' \105\110 \105\116\115 \110\097\109\101\044 \097\110\100 \104\097\115 \110\111 \101\113\117\105\118\097\108\101\110\116 \115\104\097\114\101\100 \115\099\114\105\112\116\046"))end end end
--- A helper method that registers all commands inside a specific container.
function Registry:RegisterCommandsIn(container, filter)
	local skippedServerScripts = {}
	local usedServerScripts = {}

	for _, commandScript in pairs(container:GetChildren()) do
		if commandScript:IsA("ModuleScript") then
			if not commandScript.Name:find("Server") then
				local serverCommandScript = container:FindFirstChild(commandScript.Name .. "Server")

				if serverCommandScript then
					usedServerScripts[serverCommandScript] = true
				end

				self:RegisterCommand(commandScript, serverCommandScript, filter)
			else
				skippedServerScripts[commandScript] = true
			end
		else
			self:RegisterCommandsIn(commandScript, filter)
		end
	end

	for skippedScript in pairs(skippedServerScripts) do
		if not usedServerScripts[skippedScript] then
			warn(
				"Command script "
					.. skippedScript.Name
					.. " was skipped because it has 'Server' in its name, and has no equivalent shared script."
			)
		end
	end
end
