Messages
GrzybcioRynek 1.0.3 messages live in config.yml under messages.* — there is no messages.yml.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
All player texts are in config.yml → messages.*. MessageManager reads messages. + path. There is no separate messages.yml file.
How reading works
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
messages:
prefix: "&8[&bGrzybcioRynek&8] &7"
no-permission: "Nie masz uprawnień do tego!"
player-only: "Tylko gracze mogą używać tej komendy!"Key groups
| Group | Paths | When |
|---|---|---|
sell.* | success, no-item, invalid-price, limit-reached, air-item | Listing |
buy.* | success, not-enough-money, own-listing, inventory-full, not-available, transaction-failed, seller-notified, listing-locked | GUI purchase |
remove.* | success, not-found, not-owner | Removing listing |
reload.success | — | Reload |
expiry.returned | — | Expired listing return to inventory |
my.no-listings | — | Empty “My listings” |
search.* | prompt, cancelled, no-results | Chat search / no results |
favorites.* | added, removed, disabled | Favorites |
mailbox.* | received, empty, claimed, inventory-full, join-hint | Mailbox |
alerts.* | prompt-query, prompt-price, created, removed, limit, triggered, disabled, cancelled | Alerts |
fee.* | listing, sale-preview, not-enough-listing | Fees |
price-hint / price-hint-none | — | Hint after listing |
anti-abuse.* | cooldown, max-value, same-player | Limits |
rating.* | prompt, success, invalid, already, cancelled | Ratings 1–5 |
admin.inspect-header | — | /market admin inspect |
relist.* | prompt, cancelled | Relist from mailbox |
gui.* | titles, lore, buttons, sort, categories | GUI |
usage.* | main, sell, wystaw, remove, search, alerts | Bad syntax |
Full list with defaults: configuration/messages.
Keys added automatically
ConfigManager.ensureMessageDefaults() on reload fills missing keys and saves config.yml. Including e.g.:
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 fallback — ChatInputManager 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):
| Placeholder | Typical 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/selftesterrors- Reload while reserved:
Trwają aktywne transakcje — spróbuj ponownie za chwilę. /market historywhenhistory.enabled: false:Historia transakcji jest wyłączona.- Refund:
Nie znaleziono transakcji., states,REFUND:…
Changing config.yml will not affect them.
Example
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).