Fixed Reason and Added To Load

This commit is contained in:
Cooldude2606
2018-01-04 14:26:06 +00:00
parent 6e0798fb67
commit b1165cfa00
2 changed files with 2 additions and 1 deletions

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 or 'No Reason Required'
data.reason = data.reason and not data.reason == '' or 'No Reason Required'
discord_emit{
title='Player '..data.title,
color=data.colour,

View File

@@ -19,6 +19,7 @@ end
-- admin dir
require('Admin/player-info')
require('Admin/admin') -- used with Guis/admin-gui, but can work without
require('Admin/discord')
-- commands dir