Messages & Language

Every player-facing string lives in a language file under plugins/zResetMap/lang/. Nothing is hardcoded, so you can reword or translate all of it.

Pick a language

Set language in config.yml to one of the shipped files:

en

English

fr

French

es

Spanish

Then /zrm reload.

Edit messages

Open the file for your language, for example lang/en.yml, and change the values. Keys are grouped by area: reset, spawn, tp, rtp, schedule, command, lock, menu, and so on.

reset:
  completed: "&aReset of &b{world}&a completed. New seed: &e{seed}"

Leave lang-version alone. It drives migrations when you update the plugin. Do not touch the key names either, only the values.

Placeholders

Messages carry placeholders in curly braces that the plugin fills in. Use the ones that already appear in a message; the common ones are:

{world}

The world’s config label.

{worldname}

The world folder name on disk.

{time}

A formatted duration, like 1d 2h.

{seed}

The new seed after a reset.

{player}

A player name.

{count}

A number, for example players evacuated.

Colors

Messages use & color codes, hex, gradients, and reusable style tags like <warning>. All of that is covered on its own page: Colors & Styles.

Duration labels

The time block sets the unit suffixes glued onto every duration the plugin prints:

time:
  month: "mo"
  week: "w"
  day: "d"
  hour: "h"
  minute: "m"
  second: "s"
  separator: " "
  now: "now"

The number sticks straight onto the suffix, so d gives 3d and ` jours` gives 3 jours. separator sits between parts (1d 2h), and now shows when there is no time left. French ships day: "j", Spanish ships day: "d".

Weekday names

The days block sets the weekday names shown in the admin menu’s schedule label. Cosmetic only, /zrm setschedule still takes the English MONDAY..SUNDAY.

Add your own language

  1. Copy en.yml to a new file, say de.yml.

  2. Translate the values, leaving key names and lang-version as they are.

  3. Set language: de in config.yml and run /zrm reload.