zLifeSteal logozLifeSteal

Messages

Editing the plugin's chat messages, color codes, and placeholders.

Every message zLifeSteal sends to players lives under messages in config.yml. You can reword them, recolor them, or translate them.

Color codes

Messages support two color styles:

  • Standard codes like &c for red and &l for bold.
  • Hex codes in &#RRGGBB or <#RRGGBB> format for exact colors.

The prefix

messages:
  prefix: "&c&lLifeSteal &8» "

Most messages start with {prefix}, which is replaced by the text above. Change the prefix once and it updates everywhere.

Placeholders inside messages

Messages use %name% placeholders that the plugin fills in. Which ones are available depends on the message. Common ones include:

PlaceholderReplaced with
{prefix}The configured prefix
%player%The player's name
%amount%A heart or item amount
%killer%The killer's name
%victim%The victim's name
%time%A remaining time, such as a ban or cooldown
%cost%The heart cost in the shop
%usage%The correct usage for a command

Keep the %name% placeholders in place when you edit a message. If you delete one, that value will not show up.

Example

  hearts-given: "{prefix}&aYou have given %amount% heart(s) to %player%."
  revive-on-cooldown: "{prefix}&cYou cannot use the Revive Beacon for another %time%."
  golden-heart-broadcast: "{prefix}&6%killer% has slain %victim% on their last life, obtaining a Golden Heart!"

Translating

To run the server in another language, edit the message values in place. There is one message file, so write your translations directly into messages. Run /ls reload when you are done.

On this page