DeluxePouches

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:.

lang.yml
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.

lang.yml
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

KeyWhen it fires
pouch-openingThe animation has started
already-openingThe player tried to open a second pouch mid animation
pouch-removal-successThe opening finished cleanly
pouch-animation-cancelled, animation-cancelled-errorSomething interrupted the opening
animation-timeoutThe animation ran too long and was cut off
invalid-animationThe pouch names an animation that does not exist. Carries %animation%
blacklisted-regionBlocked by the WorldGuard blacklist
no-rewardsThe pouch has no usable rewards

Rewards

KeyWhen it fires
received-pouchA pouch was given, from the menu or a command
reward-received, reward-item, reward-commandReward feedback lines
command-failedA reward command failed to run

Permissions and admin

KeyWhen it fires
no-permissionMissing deluxepouches.use, or the pouch's own permission
config-reloadedAfter /dp reload
effect-failedAn effect could not play. Carries %effect%
hologram-failedA 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:

lang.yml
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 reload

Messages are re-read straight away, no restart.

On this page