Permissions
plugin.yml permissions versus what Java actually checks in GrzybcioRynek 1.0.3.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
Definition source: plugin.yml. Enforcement: command classes and MarketManager.
Table
| Permission | Default | Checked in Java | Where |
|---|---|---|---|
market.use | true | Yes | Start /market, /aukcje; /wystaw also needs sell |
market.sell | true | Yes | /market sell, /wystaw |
market.reload | op | Yes | /market reload (or market.admin) |
market.admin | op | Yes | /market admin …; removing someone else's listing |
market.history | true | No | plugin.yml only |
market.mailbox | true | No | plugin.yml only |
market.alerts | true | No | plugin.yml only |
Enforced
permissions:
market.use:
description: Pozwala używać podstawowych funkcji rynku
default: true
market.sell:
description: Pozwala wystawiać przedmioty na sprzedaż
default: true
market.reload:
description: Pozwala przeładować konfigurację
default: op
market.admin:
description: Pozwala zarządzać rynkiem (admin)
default: op
children:
market.reload: true
market.history: true
market.mailbox: true
market.alerts: truemarket.use— first check inMarketCommandandAukcjeCommand. Missing →messages.no-permission.market.sell—handleSelland/wystaw(there bothuseandsell).market.reloadormarket.admin—handleReload.market.admin— entire/market admintree; alsoMarketManager.removeListingwhen actor is not the owner.
market.admin children grant reload / history / mailbox / alerts in the Bukkit permission system, but history / mailbox / alerts are still not read in plugin code.
Unused in Java
market.history, market.mailbox and market.alerts are in plugin.yml (default: true), but no Java class checks them. Revoking them from a player will not block /market history, /market mailbox or /market alerts.
These features are gated by flags in config.yml:
| Feature | What actually disables access |
|---|---|
| History (command) | history.enabled: false |
| Favorites (command + browse button) | favorites.enabled: false |
| Alerts (command + browse button) | price-alerts.enabled: false |
| Mailbox (item delivery) | mailbox.enabled: false — GUI still opens |
| Ratings | ratings.enabled: false |
| Statistics | stats.enabled is UNUSED — nothing gates it |
Default behavior
A player without OP has market.use and market.sell. They can browse, list, buy (GUI), open mailbox, history, alerts and statistics.
OP additionally has market.reload and market.admin.
LuckPerms example
/lp group default permission set market.use true
/lp group default permission set market.sell true
/lp group admin permission set market.admin true
Revoking market.sell blocks /market sell and /wystaw, but not browsing or purchasing.
Revoking market.history changes nothing in 1.0.3 — use history.enabled.