Closed leis-leis closed 1 month ago
Default behaviour is to accrue claim blocks only when actively playing. If you want idle players to accrue blocks too, then you need to change the AccruedIdlePercent: 0
setting.
Thank you, this fixed my issue. I was looking for information about the idle part of the config in the docs and found nothing and considered it to be some sort of AFK thing. I am confused why sitting on a horse, in a boat etc. is considered idling though
I was looking for information about the idle part of the config in the docs and found nothing and considered it to be some sort of AFK thing. I am confused why sitting on a horse, in a boat etc. is considered idling though
I think this config was added long ago before I had the new documentation site setup, so it's likely missing. If you can make an issue on the docs repo that'd be appreciated!
We may want to consider making AFK accrual penalties an addon. Related to #1060
We may want to consider making AFK accrual penalties an addon. Related to #1060
I spoke with the original developer of GPAccruals and he gave me full permission to take over the plugin. I can add AFK accrual as a config option to it. Seems in-scope for that addon
We may want to consider making AFK accrual penalties an addon. Related to #1060
Yea, I'm in favor of that. I think GP should maintain at least some level of simple afk checking though. I haven't checked the logic recently but I can take a look at what could be trimmed out.
Not sure what GP actually does internally (it's been a really low priority on my list for a couple years now), but we should consider just storing and checking player last facing vector and possibly optionally allowing a couple events like inventory clicks to also cause AFK exemption. All the vanilla AFK machines that move players about (water, pistons, minecarts, etc.) don't result in camera angle changes, and anything more complex is probably out of scope.
Oh, did I make the AccrueClaimBlocksEvent? Been so long ago I've forgotten xd. Then you and billy added to it.
Looking at the blames and going back in history, it seems this has changed over time. BigScary used to use 3 blocks as the minimum distance to move, and later made it 0. Billy then made it configurable with 0 as the default. I'll go ahead and PR something.
Observed Behavior
When player is sitting, for example on a horse or using GSit plugin the passive claimblock increase stops.
Expected Behavior
Claimblocks should increase regardless if player is sitting, standing, laying down or swimming
Reproduction steps
Stack trace or error log
No response
Server version
GriefPrevention version
Configuration
Plugin list
Running without GriefPrevention
Running with only GriefPrevention
Running on a fresh, clean server installation
Using unmodified client
We appreciate you taking the time to fill out a bug report!