What would I do if a command only needs certain Prams, Currently it takes all of them but for things like the test command I made (second piece of code) the reason will come out as nil it sends the Subject instead as that is the second spilt[2].
function Commands:Chatted(sender: Player, message: string, Prefix: string)
if not message:find(Prefix) then return end
self.command = message:gsub(Prefix, ""):split(" ")[1]
self.Subject = message:split(" ")[2]
self.Time = message:split(" ")[3]
self.Reason = message:split(" ")[4]
Commands:RunCommand(sender, self.command,self.Subject,self.Time,self.Reason)
end
["test"] = {
["Name"] = "test",
["Description"] = "test wat else đź’€",
["Format"] = "!test <player> <message>",
["Function"] = function(sender, message, Subject, Time, Reason)
print(`{Subject}: {Reason}`)
end,
},