Messages
Editing everything the plugin says in lang.yml, including how to silence a message.
Every line DeluxePouches sends to a player lives in lang.yml under messages:.
messages:
already-opening: "&cYou must wait for your previous pouch to open first!"
pouch-opening: "&6&l[!] &eOpening your &6&n%deluxepouches_pouch%&r &epouch..."
config-reloaded: "&6&l[!] &eThe configuration has been reloaded!"Colour codes work, both the &a style and hex colours. Placeholders
work too.
Turning a message off
Set it to an empty string. Empty messages are skipped, nothing is sent.
messages:
reward-received: ""That is the way to quieten the plugin down. Deleting the line instead is worse, the updater puts it back on the next version.
The messages worth knowing
Opening
| Key | When it fires |
|---|---|
pouch-opening | The animation has started |
already-opening | The player tried to open a second pouch mid animation |
pouch-removal-success | The opening finished cleanly |
pouch-animation-cancelled, animation-cancelled-error | Something interrupted the opening |
animation-timeout | The animation ran too long and was cut off |
invalid-animation | The pouch names an animation that does not exist. Carries %animation% |
blacklisted-region | Blocked by the WorldGuard blacklist |
no-rewards | The pouch has no usable rewards |
Rewards
| Key | When it fires |
|---|---|
received-pouch | A pouch was given, from the menu or a command |
reward-received, reward-item, reward-command | Reward feedback lines |
command-failed | A reward command failed to run |
Permissions and admin
| Key | When it fires |
|---|---|
no-permission | Missing deluxepouches.use, or the pouch's own permission |
config-reloaded | After /dp reload |
effect-failed | An effect could not play. Carries %effect% |
hologram-failed | A hologram could not be created |
lang.yml also carries titles: and action-bars: sections and a set of licence
lines. They are loaded but nothing sends them at the moment, so editing them has no
visible effect.
A prefix
There is no automatic prefix. Messages are sent exactly as written, so put your prefix in the lines you want it on:
messages:
pouch-opening: "&8[&6Pouches&8] &eOpening your &6%deluxepouches_pouch%&e..."
config-reloaded: "&8[&6Pouches&8] &aConfiguration reloaded."The prefix key in config.yml is a leftover and is not applied to anything.
After editing
/dp reloadMessages are re-read straight away, no restart.