Admin Bypass
Table of contents
The admin bypass feature detects staff members and optionally excludes them from heart gain and heart loss. This prevents administrators from accidentally boosting or penalising their own heart count while testing combat, moderating, or running server events.
How admin detection works
A player is treated as an admin if any of the following is true:
- They have operator status and
treat-ops-as-admin: true. - They hold the configured
permission-node(default:lifesteal.admin). - Their UUID is in the
allowed-uuidslist. - Their name (case-insensitive) is in the
allowed-nameslist.
Detection is checked at login and cached for the session. Use /lifesteal reload after changing the allow-lists.
Quick setup
In admin.yml:
enabled: true
treat-ops-as-admin: true
permission-node: "lifesteal.admin"
allowed-uuids: []
allowed-names: []
bypass-heart-loss: true
bypass-heart-gain: true
With these defaults, any operator is exempt from both heart gain and loss.
Asymmetric bypass
You can bypass only loss (so admins test freely without getting punished) while still allowing gains:
bypass-heart-loss: true
bypass-heart-gain: false
Or bypass neither (admins play at full lifesteal risk, detection only used for smurf alert routing):
bypass-heart-loss: false
bypass-heart-gain: false
Smurf alert routing
Set restrict-smurf-alerts-to-admins: true to send smurf detection alerts only to detected admins rather than to every player holding lifesteal.alert:
restrict-smurf-alerts-to-admins: true
When false (default), all players with lifesteal.alert receive live smurf notifications regardless of admin status.
Config reference
- Admin Detection (
admin.yml) — exhaustive key reference