If this still breaks i guess no rcon ¯\_(ツ)_/¯

This commit is contained in:
Cooldude2606
2019-02-19 19:11:32 +00:00
parent 40fba42676
commit 17875f2faf
2 changed files with 25 additions and 16 deletions

View File

@@ -235,7 +235,7 @@ local function run_custom_command(command)
-- runs the command
local success, err = pcall(data.callback,command,args)
if not success then error(err) end
if err ~= commands.error and player ~= SERVER then player_return({'ExpGamingCore_Command.command-ran'},defines.textcolor.info) end
if err ~= commands.error then player_return({'ExpGamingCore_Command.command-ran'},defines.textcolor.info) end
logMessage(player.name,command,'Used command',args)
end