Change messages
All messages are in config.yml under messages.* — there is no messages.yml file.
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
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
| Path | When |
|---|---|
messages.sell.* | listing |
messages.buy.* | purchase |
messages.remove.* | removing listing |
messages.reload.success | /market reload |
messages.expiry.returned | return 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:
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
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:
messages:
search:
prompt: "Wpisz na czacie frazę do wyszukania (lub &ccancel&7):"
cancelled: "Anulowano."How to apply
- Edit
messages.*inconfig.yml. /market reload.- 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.