No Command Complete To Server

This commit is contained in:
Cooldude2606
2018-04-18 19:10:39 +01:00
parent f1ff00a160
commit 428fb707cf

View File

@@ -110,7 +110,7 @@ local function run_custom_command(command)
-- runs the command
local success, err = pcall(command_calls[command.name],command,args)
if not success then error(err) end
if err ~= commands.error then player_return({'commands.command-ran'},defines.text_color.info) end
if err ~= commands.error and player_name ~= 'sevrer' then player_return({'commands.command-ran'},defines.text_color.info) end
game.write_file('commands.log',
game.tick
..' Player: "'..player_name..'"'