Fixed Reason on kick

This commit is contained in:
Cooldude2606
2018-01-07 21:44:21 +00:00
parent d4f791b5ff
commit e8f789d53c

View File

@@ -40,7 +40,7 @@ Event.register(defines.events.on_console_command,function(event)
data.username = args[1]
if not Game.get_player(data.username) then return end
if string.sub(command,-1) == 'e' then data.command = command..'d' else data.command = command..'ed' end
data.reason = data.reason and not data.reason == '' or 'No Reason Required'
data.reason = data.reason and data.reason ~= '' and data.reason or 'No Reason Required'
discord_emit{
title='Player '..data.title,
color=data.colour,