Fixed tostring in Afk Kick

This commit is contained in:
Cooldude2606
2018-03-17 23:02:49 +00:00
parent df06585c26
commit a6360c577a

View File

@@ -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,'AFK For Too Long ('..afk*3600..' Minutes)') end
if player.afk_time > afk*3600 then game.kick_player(player,'AFK For Too Long ('..tostring(afk*3600)..' Minutes)') end
end
end
end):on_event('error',function(self,err)