GrzybcioRynek

Move a button

Confirm slots are in gui.yml; browse action bar (45–53) is hardcoded in Java.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

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:

yaml
confirm:
  size: 27
  slots:
    confirm: 11
    item: 13
    cancel: 15
  confirm-material: LIME_CONCRETE
  cancel-material: RED_CONCRETE

GuiConfigManager reads confirm.slots.confirm (default 11), item (13), cancel (15).

Example

“Yes, buy” button on the left edge:

yaml
confirm:
  slots:
    confirm: 10
    item: 13
    cancel: 16

Then /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):

yaml
browse:
  categories:
    farming:
      slot: 16
      material: WHEAT
    food:
      slot: 15
      material: COOKED_BEEF

You 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:

yaml
browse:
  pagination:
    previous: 39
    page: 40
    next: 41

Browse action bar — HARDCODED 45–53

In MarketBrowseGUI slots are fixed:

java
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;
SlotButton
45Search
46Sort
47Categories
48Mailbox
49Statistics
50Alerts
51Favorites
52My listings
53History

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.

Warning

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.ymlmessages.gui.button.* and messages.gui.confirm.*.