mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed role auto promote
This commit is contained in:
@@ -1001,7 +1001,7 @@ Event.add(defines.events.on_player_joined_game, role_update)
|
|||||||
-- Every 60 seconds the auto promote check is preformed
|
-- Every 60 seconds the auto promote check is preformed
|
||||||
Event.on_nth_tick(3600, function()
|
Event.on_nth_tick(3600, function()
|
||||||
local promotes = {}
|
local promotes = {}
|
||||||
for _, player in ipairs(game.connected_players) do
|
for _, player in pairs(game.connected_players) do
|
||||||
for _, role in ipairs(Roles.config.roles) do
|
for _, role in ipairs(Roles.config.roles) do
|
||||||
if role.auto_promote_condition then
|
if role.auto_promote_condition then
|
||||||
local success, err = pcall(role.auto_promote_condition, player)
|
local success, err = pcall(role.auto_promote_condition, player)
|
||||||
|
|||||||
Reference in New Issue
Block a user