DeluxePouches

Placeholders

The placeholders DeluxePouches replaces, where they work, and how PlaceholderAPI fits in.

DeluxePouches replaces a handful of placeholders inside its own text: opening messages, hologram lines, reward commands and the messages in lang.yml.

The placeholders

PlaceholderBecomes
%deluxepouches_player%The name of the player opening the pouch
%deluxepouches_pouch%The pouch's display name, colours and all
%deluxepouches_pouch_name%The same display name
%deluxepouches_identifier%The pouch id from pouches.yml, for example legendary
%deluxepouches_rewards%How many rewards the pouch has configured
%deluxepouches_amount%The pouch's reward-amount, or the number of pouches given when used in received-pouch

Short forms %player%, %pouch% and %pouch_name% still work, kept for older configs. Prefer the long names in anything new.

Where they work

PlaceWorks
opening-message and opening-messages on a pouchYes
opening-message in config.ymlYes
Hologram lines, global and per pouchYes
Reward commandsYes
Messages in lang.ymlYes
Pouch item name and loreNo, those are written once when the pouch is built
pouches.yml
    opening-messages:
      - "&e%deluxepouches_player% &7opened a &6%deluxepouches_pouch%&7!"
    rewards:
      0:
        chance: 100
        commands:
          - "give %deluxepouches_player% minecraft:diamond 5"
          - "broadcast &e%deluxepouches_player% &7found a diamond stash!"

Messages with their own placeholders

A few messages in lang.yml carry extras, filled in by whatever raised them:

MessageExtra
invalid-animation%animation%
effect-failed%effect%
cooldown-active%deluxepouches_time%
error-occurred%deluxepouches_error%

PlaceholderAPI

With PlaceholderAPI installed, any placeholder from any of its expansions works in the same places:

pouches.yml
    hologram:
      lines:
        - "&6✦ &e%deluxepouches_pouch_name% &6✦"
        - "&7Rank: &f%vault_rank%"
        - "&7Balance: &a%vault_eco_balance%"

They are resolved for the player opening the pouch, after the DeluxePouches placeholders above.

This only goes one way. DeluxePouches does not register a PlaceholderAPI expansion, so other plugins cannot read %deluxepouches_...% placeholders from scoreboards, chat formats or menus. They work inside DeluxePouches text only.

The placeholders: block at the bottom of config.yml is a reference list, not a setting. Editing it changes nothing.

On this page