Skip to content

Integration with PlaceholderAPI

Lifestealer plugin is highly compatible with PlaceholderAPI.

List of placeholders

PlaceholderDescriptionAvailable OfflineOutput Example
%lifestealer_max_hearts_modifier%Max hearts modifierYes0
%lifestealer_min_hearts_modifier%Min hearts modifierYes0
%lifestealer_ban_time_modifier%Ban time modifier in secondsYes0
%lifestealer_return_hearts_modifier%Return hearts modifierYes0
%lifestealer_hearts%The number of hearts the user currently hasYes10
%lifestealer_ban%Ban remaining time in seconds (null if not banned)Yesnull or 46
%lifestealer_health%The current player's healthNo20.0
%lifestealer_max_hearts%Max heartsNo20
%lifestealer_min_hearts%Min heartsNo3
%lifestealer_return_hearts%User return heartsNo7
%lifestealer_ban_time%User ban time in seconds if they lose too many heartsNo15
%lifestealer_inventory_<item>%The number of heart items of type <item> in the player's inventoryNo1

If you are in doubt of any terminology used in the placeholders, please refer to the Terminology section.

Use PlaceholderAPI in Lifestealer Messages

You can use PlaceholderAPI in Lifestealer messages with the <papi> tag.

For example, if you want to prefix the player's name with their LuckPerms prefix (%luckperms_prefix%), you can use the following configuration:

yaml
messages:
  command unban success: "Unbanned <papi:luckperms_prefix> <target>."