mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 08:24:52 +09:00
Added reason to afk kick
This commit is contained in:
1 parent
5b3ff2300e
commit
df06585c26
1 file changed
+1
-1
@@ -16,7 +16,7 @@ Event.register(-1,function(event)
|
||||
for _,player in pairs(game.connected_players) do
|
||||
local afk = Ranking.get_rank(player).max_afk_time or false
|
||||
if afk then
|
||||
if player.afk_time > afk*3600 then game.kick_player(player) end
|
||||
if player.afk_time > afk*3600 then game.kick_player(player,'AFK For Too Long ('..afk*3600..' Minutes)') end
|
||||
end
|
||||
end
|
||||
end):on_event('error',function(self,err)
|
||||
|
||||
Reference in new issue
Block a user