Move a button
Confirm slots are in gui.yml; browse action bar (45–53) is hardcoded in Java.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
Some buttons can be moved via YAML. The browse bar cannot, without a Java change.
Confirm — configurable
plugins/GrzybcioRynek/gui.yml:
confirm:
size: 27
slots:
confirm: 11
item: 13
cancel: 15
confirm-material: LIME_CONCRETE
cancel-material: RED_CONCRETEGuiConfigManager reads confirm.slots.confirm (default 11), item (13), cancel (15).
“Yes, buy” button on the left edge:
confirm:
slots:
confirm: 10
item: 13
cancel: 16Then /market reload and go Detail → Confirm.
Slot must be < confirm.size. With size: 27 legal slots are 0–26.
Categories — configurable
In browse.categories each category has slot and material (used in MarketCategoryGUI):
browse:
categories:
farming:
slot: 16
material: WHEAT
food:
slot: 15
material: COOKED_BEEFYou can move slot (e.g. farming.slot: 24) as long as it does not overlap another and fits in the category GUI.
Category / browse pagination in YAML:
browse:
pagination:
previous: 39
page: 40
next: 41Browse action bar — HARDCODED 45–53
In MarketBrowseGUI slots are fixed:
private static final int SLOT_SEARCH = 45;
private static final int SLOT_SORT = 46;
private static final int SLOT_CATEGORIES = 47;
private static final int SLOT_MAILBOX = 48;
private static final int SLOT_STATS = 49;
private static final int SLOT_ALERTS = 50;
private static final int SLOT_FAVORITES = 51;
private static final int SLOT_MY = 52;
private static final int SLOT_HISTORY = 53;| Slot | Button |
|---|---|
| 45 | Search |
| 46 | Sort |
| 47 | Categories |
| 48 | Mailbox |
| 49 | Statistics |
| 50 | Alerts |
| 51 | Favorites |
| 52 | My listings |
| 53 | History |
There are no YAML keys for these nine slots. Changing gui.yml will not move them. To move them, edit MarketBrowseGUI.java and rebuild the JAR — Build.
history.enabled: false does not hide the button on slot 53. The flag only blocks the /market history command.
Button texts
Names (not positions) are in config.yml → messages.gui.button.* and messages.gui.confirm.*.