function Registry.RegisterCommand(y,r,B,p)local h=require(r)if B then h.Run=require(B)end if p and not p(h)then return end y:RegisterCommandObject(h)r.Parent=y.Cmdr.ReplicatedRoot.Commands end
--- Registers a command definition and its server equivalent.
-- Handles replicating the definition to the client.
function Registry:RegisterCommand(commandScript, commandServerScript, filter)
	local commandObject = require(commandScript)

	if commandServerScript then
		commandObject.Run = require(commandServerScript)
	end

	if filter and not filter(commandObject) then
		return
	end

	self:RegisterCommandObject(commandObject)

	commandScript.Parent = self.Cmdr.ReplicatedRoot.Commands
end
