Few Big Changes In Core File

This commit is contained in:
Cooldude2606
2018-03-30 20:55:07 +01:00
parent d56f056073
commit d6a8c02287
2 changed files with 12 additions and 5 deletions

View File

@@ -143,5 +143,8 @@ commands.add_command = function(name, description, inputs, event)
inputs=inputs
}
command_calls[name] = event
commands._add_command(name,command_inputs(command_data[name])..'- '..description,run_custom_command)
commands._add_command(name,command_inputs(command_data[name])..'- '..description,function(...)
local success, err = pcall(run_custom_command,...)
if not success then error(err) end
end)
end