• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Server not kicking idle players

pallongo

New Member
Joined
Dec 30, 2009
Messages
8
Reaction score
0
Hi community,

My server is not kicking 15 minute players AFK. I've searched everywhere but I can't find a solution. My config.lua has the following line:

Code:
kickIdlePlayerAfterMinutes = 15

However, it's not working.

Thanks in advance
 
I do not know what moment you are having this problem, mine was kicking normally, he just did not kick it while attacking some mob, example of Trainers that has infinite life, so if the player put to attack it would never logout or else If that exit was too, I would stay there forever.

change your onTargetCombat function for

Lua:
function Creature:onTargetCombat(target)
    if not self then
        return true
    end
    if(self:getPlayer() and self:getPlayer():getIp() == 0) then
        self:setTarget(nil)
    end
 
Back
Top