Commands now in global list

This commit is contained in:
Cooldude2606
2017-07-19 20:39:24 +01:00
parent 67327ecb84
commit 6827bf7300

View File

@@ -76,6 +76,7 @@ function load_command(command)
end)
end
Event.register(-1,function() global.commands = Exp_commands end)
Event.register(defines.events.on_player_joined_game,function() for _,command in pairs(Exp_commands) do load_command(command) end end)
--Please Only Edit Above This Line-----------------------------------------------------------
return credits