From 0396cb4a94a7680ae1408ce83ed55e38c93cc4f5 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 1 Oct 2017 19:17:32 +0100 Subject: [PATCH] Commands on init --- locale/ExpGaming-Core/ExpGaming - Command Maker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua index 0f55c63e..7b0ad03d 100644 --- a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua +++ b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua @@ -107,7 +107,7 @@ function get_commands(rank) end return to_return end -Event.register(-1,function() global.commands = Exp_commands end) +Event.register(-1,function() global.commands = Exp_commands for _,command in pairs(Exp_commands) do load_command(command) end 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 \ No newline at end of file