GrzybcioRynek

Permissions

plugin.yml permissions versus what Java actually checks in GrzybcioRynek 1.0.3.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.

Definition source: plugin.yml. Enforcement: command classes and MarketManager.

Table

PermissionDefaultChecked in JavaWhere
market.usetrueYesStart /market, /aukcje; /wystaw also needs sell
market.selltrueYes/market sell, /wystaw
market.reloadopYes/market reload (or market.admin)
market.adminopYes/market admin …; removing someone else's listing
market.historytrueNoplugin.yml only
market.mailboxtrueNoplugin.yml only
market.alertstrueNoplugin.yml only

Enforced

yaml
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: true
  • market.use — first check in MarketCommand and AukcjeCommand. Missing → messages.no-permission.
  • market.sellhandleSell and /wystaw (there both use and sell).
  • market.reload or market.adminhandleReload.
  • market.admin — entire /market admin tree; also MarketManager.removeListing when 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

Warning

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:

FeatureWhat 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
Ratingsratings.enabled: false
Statisticsstats.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.