GrzybcioRynek

Messages

GrzybcioRynek 1.0.3 messages live in config.yml under messages.* — there is no messages.yml.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.

All player texts are in config.ymlmessages.*. MessageManager reads messages. + path. There is no separate messages.yml file.

How reading works

java
String message = plugin.getConfig().getString("messages." + path, "&cBrak wiadomosci: " + path);
return ChatColor.translateAlternateColorCodes('&', message);

Missing key → &cBrak wiadomosci: + path (e.g. Brak wiadomosci: sell.success). Colors: & codes (&a, &c, &e, &7, &8, &b, &d, &f).

sendMessage prepends messages.prefix before the content.

Prefix and general errors

yaml
messages:
  prefix: "&8[&bGrzybcioRynek&8] &7"
  no-permission: "Nie masz uprawnień do tego!"
  player-only: "Tylko gracze mogą używać tej komendy!"

Key groups

GroupPathsWhen
sell.*success, no-item, invalid-price, limit-reached, air-itemListing
buy.*success, not-enough-money, own-listing, inventory-full, not-available, transaction-failed, seller-notified, listing-lockedGUI purchase
remove.*success, not-found, not-ownerRemoving listing
reload.successReload
expiry.returnedExpired listing return to inventory
my.no-listingsEmpty “My listings”
search.*prompt, cancelled, no-resultsChat search / no results
favorites.*added, removed, disabledFavorites
mailbox.*received, empty, claimed, inventory-full, join-hintMailbox
alerts.*prompt-query, prompt-price, created, removed, limit, triggered, disabled, cancelledAlerts
fee.*listing, sale-preview, not-enough-listingFees
price-hint / price-hint-noneHint after listing
anti-abuse.*cooldown, max-value, same-playerLimits
rating.*prompt, success, invalid, already, cancelledRatings 1–5
admin.inspect-header/market admin inspect
relist.*prompt, cancelledRelist from mailbox
gui.*titles, lore, buttons, sort, categoriesGUI
usage.*main, sell, wystaw, remove, search, alertsBad syntax

Full list with defaults: configuration/messages.

Keys added automatically

ConfigManager.ensureMessageDefaults() on reload fills missing keys and saves config.yml. Including e.g.:

yaml
messages.input.cancelled: "Anulowano."
messages.alerts.cancelled: "Anulowano tworzenie alertu."
messages.rating.cancelled: "Anulowano ocenę."
messages.relist.cancelled: "Anulowano ponowne wystawienie."
messages.mailbox.join-hint: "Masz &e{count} &7przedmiot(ów) w skrzynce rynku: &e/market mailbox"

messages.input.cancelled is a fallbackChatInputManager on cancel / anuluj uses specific keys: search.cancelled, alerts.cancelled, rating.cancelled, relist.cancelled.

Cancelling chat input

Words (case-insensitive): cancel, anuluj.

Input types: search, alert phrase, alert price, rating, relist price.

Placeholders

Substituted as {name} via MessageManager.getMessage(path, replacements):

PlaceholderTypical content
{item}Item name
{price}Vault-formatted price ($X / $X.XX)
{min} {max}Price limit or alert max / transaction max
{limit}Listing or alert or purchase limit
{fee}Fee
{net}Amount for seller after fee
{buyer} {seller}Nicks
{id}Listing ID
{query}Search / alert phrase
{stars}Rating 1–5
{seconds}Cooldown
{count}Count (mailbox, ratings)
{page} {total}Pagination
{sort}Sort mode name
{time}Age / expiry
{value}Statistic value
{rating}Average rating
{unit}Price per unit

Placeholder {avg} appears in messages.price-hint (hint after listing).

Hardcoded texts (not in YAML)

Some admin and a few errors go directly to chat, not through messages.*:

  • /market admin — subcommand list, inspect / remove / forceexpire / refund / selftest errors
  • Reload while reserved: Trwają aktywne transakcje — spróbuj ponownie za chwilę.
  • /market history when history.enabled: false: Historia transakcji jest wyłączona.
  • Refund: Nie znaleziono transakcji., states, REFUND:…

Changing config.yml will not affect them.

Example

yaml
messages:
  prefix: "&8[&6Rynek&8] &7"
  sell:
    success: "Wystawiono &e{item} &7za &a{price}"
  buy:
    success: "Kupiono &e{item} &7za &a{price}"

After editing: /market reload (when no reserved listings).