diff --git a/control.lua b/control.lua index 9adb601a..bc1a3aa9 100644 --- a/control.lua +++ b/control.lua @@ -6,7 +6,7 @@ Contact a member of management on our discord to seek permission to use our code Any changes that you may make to the code are yours but that does not make the script yours. Discord: https://discord.gg/XSsBV6b -The credit below may be used by another script do not remove. +The credit below may be used by another script - do not remove. ]] local credits = {{ name='Control', @@ -28,11 +28,11 @@ Event.register(defines.events.on_tick,init) --loads all the other scripts Event.gui_update = script.generate_event_name() credit_loop(require("locale/file-header")) ---below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes fell free to change the update time on that +--below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes - feel free to change the update time Event.register(defines.events.on_tick, function(event) if (game.tick/(3600*game.speed)) % 15 == 0 then for _,player in pairs(game.connected_players) do sudo(find_new_rank,{player}) end script.raise_event(Event.gui_update,{tick=game.tick}) end end) -Event.register(-1,function() global.credits = credits end) \ No newline at end of file +Event.register(-1,function() global.credits = credits end)