1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-09-16 09:06:21 +02:00

event_change

This commit is contained in:
Gerkiz
2019-03-09 23:17:19 +01:00
committed by GitHub
parent 0d816e992e
commit bdff78224c

20
utils/debug/command.lua Normal file
View File

@@ -0,0 +1,20 @@
local DebugView = require 'utils.debug.main_view'
commands.add_command(
'debug',
'Opens the debugger',
function(_, player)
local player = game.player
local p
if player then
p = player.print
if not player.admin then
p('Only admins can use this command.')
return
end
else
p = player.print
end
DebugView.open_dubug(player)
end
)