Added connect command

This commit is contained in:
Cooldude2606
2020-06-15 00:29:23 +01:00
parent 5150d28fd3
commit 43c1bc2788
7 changed files with 125 additions and 13 deletions

View File

@@ -38,13 +38,8 @@ end)
Commands.add_parse('string-options',function(input, player, reject, options)
if not input then return end -- nil check
input = input:lower()
for _, option in ipairs(options) do
if input == option:lower() then
return option
end
end
return reject{'expcore-commands.reject-string-options', table.concat(options, ', ')}
local option = _C.auto_complete(options, input)
return option or reject{'expcore-commands.reject-string-options', table.concat(options, ', ')}
end)
Commands.add_parse('string-max-length',function(input, player, reject, max_length)