HireHall

Messages and language

Editing HireHall messages, the bundled translations, and adding your own language.

Every chat message, status name, time format and help line is in a language file in plugins/HireHall/lang. English, French and Spanish are included.

Three cards showing a bundled language, a custom language file and a missing file falling back to en_US, above a strip showing a missing key read from en_US and, if missing there too, shown as the key name

Picking a language

# config.yml
language: fr_FR
FileLanguage
en_US.ymlEnglish
fr_FR.ymlFrench
es_ES.ymlSpanish

Run /hirehall admin reload after changing it.

The menu files and job-types.yml come in English, French and Spanish too. Which one you get is decided when the files are first created:

# config.yml
language: fr_FR
menu-language: auto
  • menu-language: auto follows language. Set it to en_US, fr_FR or es_ES to pick the menu language on its own.
  • Any other language (your own de_DE, for example) gets the English menus.
  • Files that already exist are never replaced, so your edits are safe.

Switching an existing server

Changing the language on a server that already has its menus does not change them. To get fresh menus in the new language:

  1. Set language (or menu-language) in config.yml.
  2. Run /hirehall admin resetmenus.

The command copies every file in menus/ to backups/menus-<date> and then makes a fresh set of the bundled menus in the menu language, and reloads. Any edits you made, and any menus of your own, are in the backup folder to copy back. job-types.yml is not touched by this command. To get it in the new language, move it out of the folder and restart or reload.

Your own language

  1. Copy en_US.yml to a new name, for example de_DE.yml.
  2. Translate the lines.
  3. Set language: de_DE and reload.

HireHall reads your own file exactly as it is and never changes it. Any key missing from it is read from en_US.yml, so a half finished translation still works. If the file does not exist, a warning is logged and English is used.

The three bundled files get new keys added automatically when you update. Your edits to them are kept.

Formatting

Messages use MiniMessage:

jobs:
  taken: "%prefix%<white>You took job <#e8a021>#%id%</#e8a021>: %type% <white>for</white> %pay%<white>.</white>"
  • %prefix% is replaced by the prefix line at the top of the file.
  • Click and hover tags work, the help pages use them for their page buttons.
  • A message can be a list of lines. Each line is sent separately.
  • An empty message ("") is not sent at all, a simple way to turn a message off.
  • %hirehall_...% placeholders and, with PlaceholderAPI, any other placeholder work in every message. Legacy & colours returned by other plugins' placeholders are converted.

Sections

SectionWhat is in it
prefixThe prefix used by %prefix%
formatHow money, pay, item lists, stars, the progress bar and dates are written
timeDays, hours and minutes, and the Expired text
statusThe name of each job status
goalsThe name of each job goal, like Delivery or Hunting
reasonsWhy a job was cancelled or expired
generalNo permission, still loading and storage errors
postMessages while posting
jobsMessages while taking and working jobs
ratingRating messages
notifyMessages sent to the other side of a job, and the broadcast
claimsPayout and claim messages
adminAdmin command replies
menusTexts used inside menus, like payment mode names and claim reasons
confirmThe questions on the confirm menu
commandsUnknown command, player only and usage messages
helpThe help pages
inputThe typed number input: its titles, hint and the reasons shown on the barrier. See Typing a number

Useful format keys

KeyDefaultControls
format.money%amount% %currency%How every money amount is written
format.datedd MMM yyyy, HH:mmDate layout, in Java date pattern letters
format.star-full, format.star-emptyamber and grey starsRating stars
format.bar-filled, format.bar-emptyamber and dark grey barsThe ten part progress bar
format.unlimitedUnlimitedShown for an unlimited limit, also in placeholders
format.post-modesCommunity, Exclusive, Direct offerNames of the posting modes
format.pricing-unit, format.pricing-totalPrice per unit, One total priceNames of the two pricing choices

Menu names, lore and titles are not in the language files, they are in the menu files, which are made in the menu language.

On this page