Skip to content

Per Player

JackFred2 edited this page Oct 19, 2023 · 1 revision

Lenient Death's item preservation and experience preservation can optionally be used on a per-player basis. This allows it to either be opt-in / opt-out for players, or for you to manage it on the server side, either with the command or via a permissions plugin such as LuckPerms.

Per-Player mode will only apply if either item preservation or experience preservation has enabled set to per_player. Otherwise, the command will be hidden.

Permission

The permission key to enable per-player mode is lenientdeath.per_player_enabled. If a player has this permission, then their non-permission settings (via /ld perPlayer) will be ignored.

Example

To disable it for everyone, grant the default group lenientdeath.per_player_enabled = false. Then, give whoever should have it enabled lenientdeath.per_player_enabled = true.

Command

Lenient Death provides a command for users to check or manage their own per-player setting: /ld perPlayer. Admins can also use this command to manage other players' settings, if not handled by a permission plugin. For more information, see the command page.

Configuration

$.perPlayer.defaultEnabledForPlayer

Default enabled setting for new players upon join. Does not apply to permission-based setups.

  • Options: true, false
  • Default: true
  • Commands:
    • /ld config perPlayer defaultEnabledForPlayer - Check the current default per-player setting for new players.
    • /ld config perPlayer defaultEnabledForPlayer <true|false> - Change default per-player setting for new players.

$.perPlayer.playersCanChangeTheirOwnSetting

Whether players are allowed to change their own per-player setting. Does not apply if the player has a permission-based setup.

  • Options: true, false
  • Default: true
  • Commands:
    • /ld config perPlayer playersCanChangeTheirOwnSetting - Check if players can change their own setting.
    • /ld config perPlayer playersCanChangeTheirOwnSetting <true|false> - Change if players can change their own setting.