Page 1 of 1

When a player goes AFK, log the event to the game logs

Posted: Fri Aug 21, 2020 12:07 pm
by James_Hackett
Hi there!
TL;DR
When a player leaves the game, a [LEAVE] event is logged in the game's server.out file. Same for chats and joins. I propose a similar feature for afk leaves/kicks with '[AFK] {player} was kicked for being AFK' as the event

What ?
PlayerJoin.png
PlayerJoin.png (2.15 KiB) Viewed 947 times
Similar to this logged event, but instead of [JOIN], replace it with [AFK] or [AFK_LEAVE]
Why ?
As it stands, the game currently logs all server related events except afk leaves. I know they have to be logged somewhere as in game you can see a message to say the player has been afk kicked. It will also help with my discord integration which I plan to use to compile playtime

Re: When a player goes AFK, log the event to the game logs

Posted: Fri Aug 21, 2020 12:10 pm
by James_Hackett
Adding to the afk logging, perhaps an event when a player loses connection and/or their computer is too slow for the current game