GrzybcioRynek

Change messages

All messages are in config.yml under messages.* — there is no messages.yml file.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.

MessageManager reads only config.yml. Do not create a separate messages.yml — the plugin will not load it.

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!"

Colors: & codes (e.g. &a, &c, &e). Placeholders in curly braces: {item}, {price}, {id}, {min}, {max}, {limit}, etc.

Main groups

PathWhen
messages.sell.*listing
messages.buy.*purchase
messages.remove.*removing listing
messages.reload.success/market reload
messages.expiry.returnedreturn after expiry
messages.search.*search (chat)
messages.favorites.*favorites
messages.mailbox.*mailbox
messages.alerts.*price alerts
messages.fee.*fees
messages.anti-abuse.*cooldown / limits
messages.rating.*rating 1–5
messages.gui.*GUI titles and lore
messages.usage.*bad command usage

Sell and buy example:

yaml
messages:
  sell:
    success: "Wystawiono przedmiot &e{item} &7za &a{price}"
    no-item: "Musisz trzymać przedmiot w ręce!"
    air-item: "Nie możesz sprzedać powietrza!"
  buy:
    success: "Kupiono &e{item} &7za &a{price}"
    not-enough-money: "Nie masz wystarczająco pieniędzy! Potrzebujesz &c{price}"
    own-listing: "Nie możesz kupić własnego przedmiotu!"

GUI — categories and buttons

yaml
messages:
  gui:
    title: "&8Rynek"
    category:
      all: "&eWszystko"
      farming: "&cRolnictwo"
      other: "&cInne"
    button:
      search: "&eWyszukaj"
      history: "&eHistoria"
      mailbox: "&eSkrzynka"

Category key = gui.category. + MarketCategory.configKey() (e.g. farming). Changing the text does not add a new category.

Chat cancel

Words cancel and anuluj are hardcoded in ChatInputManager. You can change the message text (search.cancelled, alerts.cancelled, …), but not the word list without editing Java.

Search prompt:

yaml
messages:
  search:
    prompt: "Wpisz na czacie frazę do wyszukania (lub &ccancel&7):"
    cancelled: "Anulowano."

How to apply

  1. Edit messages.* in config.yml.
  2. /market reload.
  3. Trigger the action (sell, buy, GUI).

ConfigManager.ensureMessageDefaults() fills missing keys on reload — do not delete the entire messages block if you want to keep custom texts; missing ones will be filled with defaults.