Custom placeholders

You can add custom placeholders that contain text, colors, formatting or normal placeholders (they can't contain other custom placeholders). They are useful if you need to insert the same text or formatting in multiple holograms and you want to be able to modify it in a single place, or they can assist in writing special characters (You can find unicode symbols on websites like Unicode Table).

Default custom placeholders

placeholders:
  '{custom_placeholder}': 'This is a custom placeholder.'
  '{primary_color}': '&b'
  '{secondary_color}': '&7'
  '{separator}': '&8&m          '  # Horizontal line using strikethrough format (&m)

Adding custom placeholders

The file /plugins/HolographicDisplays/custom-placeholders.yml contains the list of custom placeholders.

To add a new placeholder:

  1. Open /plugins/HolographicDisplays/placeholders.yml.
  2. Add a new line, following the YAML syntax (e.g. '{placeholder}': 'replacement').
  3. Reload the plugin with /hd reload.
  4. You can now use your custom placeholder in holograms.

The placeholder doesn't have to be enclosed in curly braces, it can be even used to search and replace text inside all holograms, but it is advised to follow the same format as normal placeholders to keep things simple and tidy.

Example:

placeholders:
  '{test1}': 'Hello'
  '{test2}': 'World'