Skip to main content
Autosell is the engine behind all income in JPPrison — every block mined inside a rewards region is sold instantly at the price you configure in autosell.yml. No chest shops, no manual /sell step; the moment a block breaks, the value hits the player’s balance.

Enabling and Disabling Autosell

Players control autosell themselves using a simple toggle: When autosell is off, blocks still drop as items normally — players use /sellall to cash out at the end of a mining session. When autosell is on, blocks never reach the inventory at all; they sell at the instant of the break.
Consider granting /autosell to all players by default and enabling it on join via a starter kit. Most players prefer the seamless experience of instant selling.

Configuring Block Prices

Open plugins/JPPrison/autosell.yml to set the sell price and XP reward for every mineable block. Each block is identified by its Bukkit material name:
After editing the file, run /jpprison reload to apply your changes without restarting the server.
Use Bukkit material names in ALL_CAPS (e.g., DIAMOND_ORE, DEEPSLATE_COAL_ORE). You can find a full list of valid material names in the Bukkit Material documentation.

XP Rewards

The xp field on each block grants pickaxe XP — the experience used to level up the pickaxe and unlock new enchants. Higher-tier ores should always award more XP to keep progression meaningful:
  • Low-tier blocks like STONE award 1 XP → fast to mine, low reward.
  • Mid-tier blocks like IRON_ORE award 5 XP → moderate progression speed.
  • High-tier blocks like EMERALD_ORE award 50 XP → reserved for end-game mines.
Tuning the xp values alongside block prices is how you control the pacing of your server’s progression curve. If players are reaching max level too quickly, lower the xp values on common blocks.

Multi-Economy Payouts

You can configure any block to pay into multiple economies simultaneously. Add the economy id as an extra field alongside price and xp:
Each field name must exactly match the id of a loaded economy in plugins/JPPrison/economies/. You can stack as many economies as you like on a single block — every one listed is paid out simultaneously on each mine event.
Use multi-economy payouts to make rare ores feel genuinely special. A block that pays price, tokens, AND gems all at once creates memorable moments that keep players engaged.

WorldGuard Flag Gate

Autosell rewards only trigger inside WorldGuard regions where the jpprison-enchants flag is set to allow. Blocks broken outside those regions still break and drop items normally, but no sell income or XP is awarded. To activate autosell rewards in a region:
This design lets you have free-build zones, player plots, or event arenas where the economy does not apply — players can’t exploit cheap blocks in unprotected areas for infinite income.
If players report that autosell is not working in a mine, check the region flags first. The jpprison-enchants flag must be explicitly set to allow — it does not inherit from parent regions by default.

Earnings Recap

JPPrison automatically posts a chat summary of each player’s earnings at 1 minute and 5 minutes after they start mining. The summary shows total income, blocks mined, and top-earning enchants for that session window. For a live breakdown at any time, run:
The /earn board ranks every active enchant by total income generated this session, showing you exactly which enchants are pulling their weight and which upgrades will give you the best return.