AT-PinataParty

Languages and messages

Picking a language, editing the wording players see, and adding a translation of your own.

Every line the plugin says to a player lives in a language file. Three ship with the plugin, and you can add your own.

Picking one

config.yml
language: en_US
ValueLanguageFile
en_USEnglishlang/en_US.yml
fr_FRFrenchlang/fr_FR.yml
es_ESSpanishlang/es_ES.yml

Plain names (english, french, spanish) and bare codes (en, fr, es) are understood too, so you do not have to remember the exact spelling.

If the value does not match a file, the plugin logs a warning and uses English.

config.yml
en_US.yml
fr_FR.yml
es_ES.yml

How a message is found

A message lookup tried against the chosen language file first, falling back to the English file for anything missing

Editing the wording

Open the file for your language and change the text. Run /pp reload and the new wording is live, no restart needed.

lang/en_US.yml
pinata-hit: "%prefix% &aYou successfully hit the Pinata!"
pinata-hit-miss: "%prefix% &eYou missed the Pinata!"

Every value supports the full set of color options. See Colors and formatting.

Placeholders

%prefix% works in every message and pulls in the prefix value from the top of the file. The rest are per message.

PlaceholderWhere it worksBecomes
%prefix%Any messageThe prefix line from the same file
%location%invalid-location, location-set, summon-success, pinata-spawnedThe spawn point name
%count%, %limit%max-pinatas-reachedPiñatas running now, and the cap
%time%pinata-spawning.countdownSeconds left on the countdown
%player%pinata-hit-broadcastThe player who hit
%hits%, %total_hits%pinata-hit-broadcastHits landed so far, and the total needed

Every message

Adding your own language

Copy the English file

Copy lang/en_US.yml to lang/de_DE.yml, or whatever code suits.

Translate it

Change the text, leave the keys alone. Anything you do not translate falls back to the English wording, so a half-finished file still works and never shows a missing message.

Point the config at it

config.yml
language: de_DE

Reload

/pp reload and you are done.

A language the plugin does not ship is treated as yours. The plugin never rewrites it, so an update cannot overwrite your translation. The trade-off is that new messages will not appear in it automatically, so check the English file after an update and copy across anything new.

Staying up to date

The three bundled files carry a lang-version at the top. When you update the plugin, new messages are added to your file and your own wording is kept, the same way config.yml is handled.

Do not edit lang-version by hand. The plugin uses it to work out what needs adding.

Coming from an older version

If you are upgrading from a version that used messages.yml, there is nothing to do. On the first start the plugin moves that file into lang/en_US.yml with all your wording intact, and leaves the old one behind as messages.yml.old in case you want it. You will see a line in the console saying so.

On this page