Change market fees
Listing and sale fees — percentages, min/max, sink-account, and burning the fee.
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
market-fee:
enabled: true
listing-fee-percent: 0.0
sale-fee-percent: 5.0
minimum-fee: 0.0
maximum-fee: 0.0
sink-account: ""| Key | Default | Meaning |
|---|---|---|
enabled | true | disables both fees |
listing-fee-percent | 0.0 | % of price on listing (taken from seller) |
sale-fee-percent | 5.0 | % of price on purchase (seller gets net) |
minimum-fee | 0.0 | fee amount floor |
maximum-fee | 0.0 | 0 = no upper limit |
sink-account | "" | empty = burn the fee |
Formula
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.
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
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
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
- Set percentages (e.g. listing
1.0, sale8.0). - Optionally
minimum-fee: 1.0andmaximum-fee: 500.0. - Fill
sink-accountor leave"". /market reload.- 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).