PAR-139
0
No ubi while afk
Pending ReleaseUnassignedTreasuryFeature
Goal
Don't pay recurring basic-income / salary to AFK players.
Grounded
Recurring gov payouts run in SalaryServiceImpl.planPayroll() (treasury/.../services/impl/SalaryServiceImpl.java:59): it iterates server.getOnlinePlayers(), resolves each player's highest LuckPerms-group salary, then payout(...) transfers from the gov account. There is no AFK check, so AFK-idling players still collect.
Fix
In planPayroll(), skip AFK players before resolving their salary. AFK signal options:
- Essentials (the server runs Essentials):
User.isAfk()via the Essentials API (IUser.isAfk()exists). - LuckPerms context (per the issue title): if an
afkcontext is registered, gate on it. Make it configurable (some setups may want to keep paying AFK players).
Acceptance
- An AFK player is excluded from a payroll cycle; non-AFK players unaffected.
- A toggle to disable the AFK gate.
Resources
- PR#2 Last major release ParadauxIO/hibernia-economy
- commit2b5a306 Skip AFK players in government payroll (PAR-139)ParadauxIO/hibernia-economy
Comments
No comments yet.
Activity
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- tesks changed status to Status → Pending Release
- ParadauxIO linked a commit — Commit 2b5a306 — Skip AFK players in government payroll (PAR-139)
- paradaux assigned Unassigned
- tesks description: Description updated
- paradaux changed status to Status → Planned
- tesks created the issue