Uh oh!
There was an error while loading. Please reload this page.
New config.yml option: afk-timeout-command: - #6169
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jason <51760372+JasonHorkles@users.noreply.github.com>
Co-authored-by: Jason <51760372+JasonHorkles@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ZepsiZola
commented
Jun 13, 2025
I added it because this is what I got after doing
Fair enough. I wasn't familiar with the EssentialsX codebase and thought that that was needed if I wanted to parse placeholders in the config option. I can change that line to not use FormatUtil.
The variable is there so that if a server owner changes the AFK timeout, they don't also have to change the
@JRoy |
I believe this could be a list of commands and instead of none, check if the list is empty, just like other settings already do |
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
JasonHorkles
commented
Jun 13, 2025
You can deselect items that you don't want to commit 😉
Josh was referring to the older config option
This is something that the team seems to agree with as well, although it's still being debated |
ZepsiZola
commented
Jun 14, 2025
I know that. But isn't the point of .gitignore to ignore files that will never be comitted? Unless this repo does require files in bin/ directories being pushed.
Ahh he was suggesting changing the existing config option name. Fair enough. I'm impartial to that.
I can implement this if you want. I don't necessarily care about that functionality, but it won't interfere with my own functionality, plus I just want this feature implemented so I can use it in my server as soon as I can. |
ZepsiZola
commented
Jun 15, 2025
@SrBedrock@JasonHorkles@JRoy
Now the config.yml looks like this... # Define a set of commands the server runs when a player's AFK time elapses.# Set to [] to use Essentials' default AFK timeout kick behavior.## Available placeholders:# {USERNAME} - The player's username.# {KICKTIME} - The time, in minutes, the player has been AFK for.afk-timeout-commands: []and you can set commands like this afk-timeout-commands:
- "msg {USERNAME} You have been AFK for {KICKTIME}. Jailing you and moving you to AFK server..."
- "jail {USERNAME} jail-1"
- "server afk {USERNAME}" |
JasonHorkles
commented
Jun 15, 2025
Seems fine to me, although I do have a concern about your possible intended use for this - the /server command is created by the proxy and not the backend servers, so unless you have a custom server switching solution, the /server command won't work |
ZepsiZola
commented
Jun 15, 2025
I have a plugin that creates |
ZepsiZola
commented
Jun 15, 2025
Do I need to "Mark as resolved" on requested changes or can I just leave this? |
JasonHorkles
commented
Jun 16, 2025
Can't hurt to resolve ones you implemented |
ZepsiZola
commented
Jun 16, 2025
I've done that, but what about the ones I haven't implemented? |
JasonHorkles
commented
Jun 16, 2025
Leave them open for now |
run |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
ZepsiZola
commented
Jun 25, 2025
Can I just rename the config option? Wouldn't that affect people with older configs? Or is there more I have to do when renaming a config option? Also when you say to update the docs, which docs do you mean and can I even update them within this repo? I thought the docs were hosted on https://essentialsx.net/wiki |
JRoy
commented
Jun 25, 2025
Look at this example to see how to do it, you would look for the new name, if that isn't set look for the old name, if that isn't set, use the default value Essentials/Essentials/src/main/java/com/earth2me/essentials/Settings.java Lines 222 to 224 in ff1b8b8
Just the comments above the option in the config.yml |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JRoy
left a comment
There was a problem hiding this comment.
lgtm, will merge after our next release
when will be the rollout? (release) |
JasonHorkles
commented
Jul 29, 2025
It'll be released when it gets released. We don't have any ETAs |
ZepsiZola
commented
Aug 5, 2025
Hell yeah. |
EssentialsX@c01ba4e Bump adventure dependencies (EssentialsX#6243) EssentialsX@16f643a New Crowdin updates (EssentialsX#6225) EssentialsX@eb781a1 Release 2.21.2 EssentialsX@b36d433 Prepare for 2.22.0 Dev Builds (EssentialsX#6209) EssentialsX@74337ff Add wind charge explosion protect config (EssentialsX#6183) EssentialsX@636bb09 Add tipped arrow support to /potion (EssentialsX#6191) EssentialsX@d402f17 Reset oxygen with /heal (EssentialsX#6201) EssentialsX@334c5a4 New config.yml option: afk-timeout-command: (EssentialsX#6169) EssentialsX@790644b Ignore cancelled PlayerDeathEvents (EssentialsX#6179) EssentialsX@03d8938 feat: Add /powertoollist (EssentialsX#6096) EssentialsX@689c35f Add bypass permission node for the whitelist. (EssentialsX#6232) EssentialsX@8bcf03d Discord: Add PAPI support to avatar-url (EssentialsX#6189) EssentialsX@025ca48 Discord: Respect game rule for advancement message type (EssentialsX#6195)
Implements this EssentialsX#2864 **Specifically, this functionality:** `afk-timeout-command: "server afk {USERNAME}"` Sends the player to the AFK server on the server-network. `afk-timeout-command: "litebans:kick {USERNAME} You were kicked after {KICK_TIME} minutes of inactivity."` Kicks the player using litebans so that it shows up in their litebans history. `afk-timeout-command: "none"` Default behaviour of essentials kicking the player on afk-timeout. --------- Co-authored-by: Jason <51760372+JasonHorkles@users.noreply.github.com> Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>

Implements this #2864
Specifically, this functionality:
afk-timeout-command: "server afk {USERNAME}"Sends the player to the AFK server on the server-network.
afk-timeout-command: "litebans:kick {USERNAME} You were kicked after {KICK_TIME} minutes of inactivity."Kicks the player using litebans so that it shows up in their litebans history.
afk-timeout-command: "none"Default behaviour of essentials kicking the player on afk-timeout.