Skip to content

Economy Addon (4.0.0) ​

LandClaimPlugin-Economy adds configurable chunk claiming costs, voluntary unclaim and warp refunds, invite fees, slot purchases, daily upkeep taxes, a fixed-price marketplace, and timed auctions. It targets Paper and Folia 1.21.6+ on Java 25 and requires LandClaimPlugin 4.0.0 and a Vault economy provider.


Installation ​

  1. Install LandClaimPlugin 4.0.0, Vault (or VaultUnlocked), and an economy provider plugin.
  2. Drop LandClaimPlugin-Economy-4.0.0.jar into plugins/.
  3. Restart the server.
  4. Enable the features you want in plugins/LandClaimPlugin-Economy/config.yml and run /claimmarket admin reload.

On upgrades from 3.4.0, existing files are backed up automatically to config.yml.bk and messages.yml.bk before settings migrate into the grouped 4.0.0 format.


Core features ​

Claim costs and voluntary refunds ​

ModeFormulaNotes
FIXEDfirstChunkCost for new profile, perChunkCost for expansionsDefault flat pricing
DOUBLEDbaseCost * 2^ownedChunksCapped by maxChunkCost when > 0
PERCENTAGEbaseCost * (1 + percentageIncrease / 100)^ownedChunksCapped by maxChunkCost when > 0
  • Persistent first free claim: When claimCost.firstClaimFree is true, each player's first-ever claimed chunk is free and recorded in lce_player_state across server restarts.
  • Persistent daily cap: claimCost.dailyChargeCap bounds spend per rolling 24-hour window.
  • Exploit-safe unclaim refunds: When claimCost.unclaimRefundEnabled is true, voluntary /unclaim and /claim abandon operations refund claimCost.unclaimRefundRatio of the recorded charge stored in lce_chunk_costs. Free first chunks, bypassed claims, capped chunks, admin unclaims, inactivity decay, and tax evictions never pay refunds.

Warp and invite fees ​

  • Warps: warpCost.baseCost applies on /claim setwarp, multiplied by warpCost.publicMultiplier for public warps or when upgrading privacy. When warpCost.deleteRefundEnabled is enabled, deleting a warp refunds warpCost.deleteRefundRatio of total recorded fees from lce_warp_costs.
  • Invites: inviteCost.memberCost and inviteCost.trustedCost charge claim owners on /claim member invite and /claim trust invite.

Slot purchases ​

When limitPurchases.enabled is true, /claim buy claim [amount], /claim buy role, /claim buy member, and /claim buy warp in LandClaimPlugin withdraw currency directly through EconomyBridge.

Daily upkeep tax ​

  • Runs every tax.intervalMinutes minutes and charges chunks * tax.perChunkPerDay per elapsed 24-hour billing cycle (Server Land / Admin profiles are never taxed).
  • Checks online permissions and offline Vault Permission providers (when available) for landclaimeconomy.bypass.tax.
  • If payment fails, unpaid_days increments. When unpaid_days > tax.gracePeriodDays (0 evicts on the first missed billing cycle), the claim is auto-unclaimed without issuing an unclaim refund.
  • Owners can run /claimtax to inspect status and click [Pay] or run /claimtax pay [claim] to clear overdue tax early. Claim transfers reset any prior tax debt so buyers start clean.

Marketplace and timed auctions ​

  • Paper Dialogs & Geyser Forms: Java 1.21.6+ clients enter prices, confirm purchases, create auctions (starting price, duration, and buyout in one modal), place bids, trigger instant buyouts, and inspect transaction history using native Paper Dialogs. Bedrock players receive Geyser Forms when enabled, or clean GUI/command prompts.
  • Seller claim lock: Claims listed on the market or under an active auction cannot be shrunk or abandoned by non-admin players via /unclaim or /claim abandon.
  • Atomic concurrency: Market purchases and auction settlements claim database rows atomically (status = 'ACTIVE') before moving funds or transferring claim ownership, preventing double-buys and double-settlements.
  • Anti-snipe cap: Bids placed inside auction.snipeWindowSeconds extend the auction timer up to auction.maxSnipeExtensions times.
  • Offline payout queue: Any Vault deposit or refund rejected while a recipient is offline is stored in lce_pending_payouts and delivered automatically when they next join.

Commands and permissions ​

CommandPermissionDescription
/claimmarket (/cmarket, /claimbazaar)landclaimeconomy.useOpen marketplace browser (or auctions if market disabled)
/claimmarket minelandclaimeconomy.useFilter marketplace to your own listings
/claimmarket sell [profile] [price]landclaimeconomy.usePick claim profile and list via Dialog or direct price
/claimmarket unlist [claim]landclaimeconomy.useRemove your marketplace listing
/claimmarket buy [claim]landclaimeconomy.useOpen market browser or buy confirmation Dialog
/claimmarket historylandclaimeconomy.useOpen your recent transaction ledger
/claimmarket auction listlandclaimeconomy.useBrowse active claim auctions
/claimmarket auction start [profile] [price] [mins] [buyout]landclaimeconomy.useStart an auction via single-screen Dialog or arguments
/claimmarket auction bid [claim] [amount]landclaimeconomy.usePlace a bid or instant buyout
/claimmarket auction cancel [claim]landclaimeconomy.useCancel an auction that has no bids
/claimtax (/ctax)landclaimeconomy.useView per-claim upkeep tax status and unpaid balance
/claimtax pay [claim]landclaimeconomy.usePay overdue upkeep tax immediately
/claimmarket admin unlist <claim>landclaimeconomy.adminForce-remove a marketplace listing
/claimmarket admin cancelauction <claim>landclaimeconomy.adminCancel an auction and refund the high bidder
/claimmarket admin history <player>landclaimeconomy.adminInspect a player's transaction ledger
/claimmarket admin reloadlandclaimeconomy.adminReload addon config, messages, and scheduler timers
/claimtax admin runlandclaimeconomy.adminTrigger an immediate upkeep tax cycle

Permission nodes ​

NodeDefaultDescription
landclaimeconomy.usetrueAccess /claimmarket, /claimtax, and buying/selling flows
landclaimeconomy.bypassopBypass claiming, warp, invite, and slot charges
landclaimeconomy.bypass.taxopExempt owned claims from daily upkeep tax and eviction
landclaimeconomy.adminopAdministrative unlisting, auction cancel, tax runs, history, reload

Configuration reference (plugins/LandClaimPlugin-Economy/config.yml) ​

yaml
general:
  configVersion: "4.0.0"
  enabled: true
  geyserForms: true

claimCost:
  enabled: false
  mode: FIXED
  baseCost: 25.0
  firstChunkCost: 100.0
  perChunkCost: 25.0
  percentageIncrease: 10.0
  maxChunkCost: 10000.0
  firstClaimFree: true
  dailyChargeCap: 5000.0
  unclaimRefundEnabled: false
  unclaimRefundRatio: 0.5

warpCost:
  enabled: false
  baseCost: 50.0
  publicMultiplier: 2.0
  deleteRefundEnabled: false
  deleteRefundRatio: 0.5

inviteCost:
  enabled: false
  memberCost: 25.0
  trustedCost: 10.0

limitPurchases:
  enabled: false
  claimBlockCost: 50.0
  roleSlotCost: 150.0
  memberSlotCost: 50.0
  warpSlotCost: 75.0

tax:
  enabled: false
  perChunkPerDay: 5.0
  gracePeriodDays: 7
  intervalMinutes: 60

market:
  enabled: false
  listingFee: 100.0
  maxPrice: 1000000.0
  sellerPayoutRatio: 1.0
  expiryHours: 0

auction:
  enabled: false
  defaultDurationMinutes: 60.0
  minBidIncrement: 1.0
  listingFee: 100.0
  checkIntervalSeconds: 30
  maxPerPlayer: 3
  snipeWindowSeconds: 60
  maxSnipeExtensions: 10
  minBuyoutMultiplier: 2.0

Database tables (lce_*) ​

Stored inside LandClaimPlugin's configured SQLite, MySQL, or MariaDB pool:

TablePurpose
lce_transactionsAudit log of all charges, refunds, taxes, market sales, and auction bids
lce_player_statePersistent first_claim_used, daily_spent, and rolling 24-hour window timestamp
lce_chunk_costsRecorded per-chunk charge and payer UUID for voluntary unclaim refunds
lce_warp_costsRecorded warp creation and upgrade spend for deletion refunds
lce_tax_ledgerPer-claim last_paid_at, unpaid_days, and last_known_chunks
lce_market_listingsActive marketplace listings
lce_auctionsTimed auctions, active bid state, extensions_used, and status
lce_pending_payoutsQueued offline deposits and refunds delivered on player join

Released under the MIT License.