Custom placeholders

You can add custom placeholders that contain static text. They are useful if you need to insert the same message or color in multiple icons and you want to be able to modify it in a single place, or they can assist in writing unicode symbols.

They can be used in the following icon attributes:

  • ACTIONSs
  • NAME
  • LORE
  • SKULL-OWNER

Adding custom placeholders

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

To add a new placeholder:

  1. Open custom-placeholders.yml.
  2. Add a new key and value to the placeholders section, using the format 'placeholder': 'replacement' (single quotes should be kept).
  3. Reload the plugin with /cc reload.
  4. You can now use your custom placeholder in menus and it will be automatically replaced with the value you specified.

You can find unicode symbols on websites like Unicode Table.

Example:

placeholders:
  '{primary_color}': '&b'
  '{star}': '★'
  '{vip_required}': '&6You must be VIP to use this item.'