GrzybcioRynek

Change market fees

Listing and sale fees — percentages, min/max, sink-account, and burning the fee.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.

Fees are calculated by ConfigManager. With market-fee.enabled: false both functions return 0.

Default configuration

yaml
market-fee:
  enabled: true
  listing-fee-percent: 0.0
  sale-fee-percent: 5.0
  minimum-fee: 0.0
  maximum-fee: 0.0
  sink-account: ""
KeyDefaultMeaning
enabledtruedisables both fees
listing-fee-percent0.0% of price on listing (taken from seller)
sale-fee-percent5.0% of price on purchase (seller gets net)
minimum-fee0.0fee amount floor
maximum-fee0.00 = no upper limit
sink-account""empty = burn the fee

Formula

java
double fee = price * (saleFeePercent / 100.0);
if (fee < minimumFee) fee = minimumFee;
if (maximumFee > 0 && fee > maximumFee) fee = maximumFee;
return Math.round(fee * 100.0) / 100.0;

Same for listing-fee-percent. maximum-fee: 0 does not zero the fee — it skips the cap.

Example

Price $100, sale-fee-percent: 5.0, maximum-fee: 0 → fee $5, seller $95. With sink-account: "" those $5 go to no account.

Sink account

yaml
market-fee:
  sink-account: "Podatek"

VaultHook.depositAccount(name, amount) calls economy.depositPlayer(accountName, amount). The account must exist at the economy provider. Empty / blank string = no deposit (burn).

Messages

yaml
messages:
  fee:
    listing: "Prowizja za wystawienie: &c{fee}"
    sale-preview: "Prowizja: &c{fee}&7 | Otrzymasz: &a{net}"
    not-enough-listing: "Nie stać Cię na prowizję wystawienia (&c{fee}&7)."

Confirm GUI shows gui.confirm.fee and gui.confirm.seller-net.

How to change

  1. Set percentages (e.g. listing 1.0, sale 8.0).
  2. Optionally minimum-fee: 1.0 and maximum-fee: 500.0.
  3. Fill sink-account or leave "".
  4. /market reload.
  5. List and buy as a test — check UUID balances.

Disable: enabled: false (simpler than zeroing both percents when you also want to skip minimum-fee).