mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 12:05:21 +09:00
Fixing Afk Kick Bug
This commit is contained in:
@@ -21,6 +21,7 @@ Event.register(-1,function(event)
|
||||
name='afk-kick',
|
||||
}:on_event('tick',function(self)
|
||||
if (game.tick%3600) ~= 0 then return end
|
||||
if game.tick < 1 then return end
|
||||
for _,player in pairs(game.connected_players) do
|
||||
local afk = #game.connected_players < 3 and 10 or _.get_afk_time(player)
|
||||
if afk then
|
||||
|
||||
Reference in New Issue
Block a user