[Mod] Afk Kick [afkkick] – Automatically kick afk players
- GunshipPenguin
- Member
- Posts: 94
- Joined: Tue Jan 28, 2014 00:38
- GitHub: GunshipPenguin
- IRC: GunshipPenguin
- In-game: GunshipPenguin
- Location: Vancouver, BC
[Mod] Afk Kick [afkkick] – Automatically kick afk players
The functionality provided by this mod has been included in my "Server Essentials" mod (viewtopic.php?f=11&t=12445
), further development will take place there
Kicks players after they are Afk for an amount of time. By default, players are kicked after five minutes, although this can be configured, see README.md for more information.
License: CC0 1.0 Universal
Dependencies: None
GitHub: https://github.com/GunshipPenguin/afkkick
), further development will take place there
Kicks players after they are Afk for an amount of time. By default, players are kicked after five minutes, although this can be configured, see README.md for more information.
License: CC0 1.0 Universal
Dependencies: None
GitHub: https://github.com/GunshipPenguin/afkkick
Last edited by GunshipPenguin on Tue May 03, 2016 00:00, edited 3 times in total.
Sprint Mod -- viewtopic.php?f=11&t=9650&p=156207
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
What if someone talks for 10 minutes?
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- GunshipPenguin
- Member
- Posts: 94
- Joined: Tue Jan 28, 2014 00:38
- GitHub: GunshipPenguin
- IRC: GunshipPenguin
- In-game: GunshipPenguin
- Location: Vancouver, BC
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
Just made a new commit, a player's kick timer will now reset if they send a chat message.Krock wrote:What if someone talks for 10 minutes?
Sprint Mod -- viewtopic.php?f=11&t=9650&p=156207
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
- Wuzzy
- Member
- Posts: 4927
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
I would also send a warning message to the player 1 minute before the kick, just to be sure …
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
Maybe this should have an option that allows it to only kick players if the server is full?
- 12Me21
- Member
- Posts: 873
- Joined: Tue Mar 05, 2013 00:36
- GitHub: 12Me21
- Location: (Ignore all of my posts before 2018)
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
There should be an option that only lets it kick people if there is a certain number of people on the server, or if the server is a certain % full (for example, if there is a maximum of 24 people, and the % is set to 50, it will kick afk people when the server has 12 people.)crazyR wrote:Maybe this should have an option that allows it to only kick players if the server is full?
- fireglow
- Member
- Posts: 93
- Joined: Fri Mar 28, 2014 11:36
- IRC: fireglow
- In-game: fireglow
- Location: Germany
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
Server crash when a player joins the server:
Code: Select all
2015-03-23_17:38:21.15671 17:38:21: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2015-03-23_17:38:21.15679 17:38:21: ERROR[main]: /srv/minetest/world/worldmods/afkkick/init.lua:60: attempt to index local 'player' (a nil value)
2015-03-23_17:38:21.15683 17:38:21: ERROR[main]: stack traceback:
2015-03-23_17:38:21.15689 17:38:21: ERROR[main]: /srv/minetest/world/worldmods/afkkick/init.lua:60: in function </srv/minetest/world/worldmods/afkkick/init.lua:33>
2015-03-23_17:38:21.15694 17:38:21: ERROR[main]: /srv/minetest/bin/../builtin/game/register.lua:341: in function </srv/minetest/bin/../builtin/game/register.lua:329>
2015-03-23_17:38:21.15700
2015-03-23_17:38:21.15701 In thread 805406400:
2015-03-23_17:38:21.15702 /srv/git/minetest/src/server.cpp:492: void Server::step(float): A fatal error occurred: /srv/minetest/world/worldmods/afkkick/init.lua:60: attempt t
o index local 'player' (a nil value)
- GunshipPenguin
- Member
- Posts: 94
- Joined: Tue Jan 28, 2014 00:38
- GitHub: GunshipPenguin
- IRC: GunshipPenguin
- In-game: GunshipPenguin
- Location: Vancouver, BC
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
I think I've fixed this, check the latest commit. Let me know if you have any more problems.fireglow wrote:Server crash when a player joins the server:Code: Select all
2015-03-23_17:38:21.15671 17:38:21: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error: 2015-03-23_17:38:21.15679 17:38:21: ERROR[main]: /srv/minetest/world/worldmods/afkkick/init.lua:60: attempt to index local 'player' (a nil value) 2015-03-23_17:38:21.15683 17:38:21: ERROR[main]: stack traceback: 2015-03-23_17:38:21.15689 17:38:21: ERROR[main]: /srv/minetest/world/worldmods/afkkick/init.lua:60: in function </srv/minetest/world/worldmods/afkkick/init.lua:33> 2015-03-23_17:38:21.15694 17:38:21: ERROR[main]: /srv/minetest/bin/../builtin/game/register.lua:341: in function </srv/minetest/bin/../builtin/game/register.lua:329> 2015-03-23_17:38:21.15700 2015-03-23_17:38:21.15701 In thread 805406400: 2015-03-23_17:38:21.15702 /srv/git/minetest/src/server.cpp:492: void Server::step(float): A fatal error occurred: /srv/minetest/world/worldmods/afkkick/init.lua:60: attempt t o index local 'player' (a nil value)
Sprint Mod -- viewtopic.php?f=11&t=9650&p=156207
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
Server Essentials Mod -- viewtopic.php?f=11&t=12445&p=180964
My PvE server -- viewtopic.php?f=10&t=10616
Re: [Mod] Afk Kick [afkkick] – Automatically kick afk player
This is a nice mod and I'd like to make sure we keep it working. Can you submit it to minetest-mods perhaps? see https://minetest-mods.github.io/ !