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
- Install LandClaimPlugin
4.0.0, Vault (or VaultUnlocked), and an economy provider plugin. - Drop
LandClaimPlugin-Economy-4.0.0.jarintoplugins/. - Restart the server.
- Enable the features you want in
plugins/LandClaimPlugin-Economy/config.ymland 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
| Mode | Formula | Notes |
|---|---|---|
FIXED | firstChunkCost for new profile, perChunkCost for expansions | Default flat pricing |
DOUBLED | baseCost * 2^ownedChunks | Capped by maxChunkCost when > 0 |
PERCENTAGE | baseCost * (1 + percentageIncrease / 100)^ownedChunks | Capped by maxChunkCost when > 0 |
- Persistent first free claim: When
claimCost.firstClaimFreeistrue, each player's first-ever claimed chunk is free and recorded inlce_player_stateacross server restarts. - Persistent daily cap:
claimCost.dailyChargeCapbounds spend per rolling 24-hour window. - Exploit-safe unclaim refunds: When
claimCost.unclaimRefundEnabledistrue, voluntary/unclaimand/claim abandonoperations refundclaimCost.unclaimRefundRatioof the recorded charge stored inlce_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.baseCostapplies on/claim setwarp, multiplied bywarpCost.publicMultiplierfor public warps or when upgrading privacy. WhenwarpCost.deleteRefundEnabledis enabled, deleting a warp refundswarpCost.deleteRefundRatioof total recorded fees fromlce_warp_costs. - Invites:
inviteCost.memberCostandinviteCost.trustedCostcharge claim owners on/claim member inviteand/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.intervalMinutesminutes and chargeschunks * tax.perChunkPerDayper elapsed 24-hour billing cycle (Server Land / Admin profiles are never taxed). - Checks online permissions and offline Vault
Permissionproviders (when available) forlandclaimeconomy.bypass.tax. - If payment fails,
unpaid_daysincrements. Whenunpaid_days > tax.gracePeriodDays(0evicts on the first missed billing cycle), the claim is auto-unclaimed without issuing an unclaim refund. - Owners can run
/claimtaxto 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
/unclaimor/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.snipeWindowSecondsextend the auction timer up toauction.maxSnipeExtensionstimes. - Offline payout queue: Any Vault deposit or refund rejected while a recipient is offline is stored in
lce_pending_payoutsand delivered automatically when they next join.
Commands and permissions
| Command | Permission | Description |
|---|---|---|
/claimmarket (/cmarket, /claimbazaar) | landclaimeconomy.use | Open marketplace browser (or auctions if market disabled) |
/claimmarket mine | landclaimeconomy.use | Filter marketplace to your own listings |
/claimmarket sell [profile] [price] | landclaimeconomy.use | Pick claim profile and list via Dialog or direct price |
/claimmarket unlist [claim] | landclaimeconomy.use | Remove your marketplace listing |
/claimmarket buy [claim] | landclaimeconomy.use | Open market browser or buy confirmation Dialog |
/claimmarket history | landclaimeconomy.use | Open your recent transaction ledger |
/claimmarket auction list | landclaimeconomy.use | Browse active claim auctions |
/claimmarket auction start [profile] [price] [mins] [buyout] | landclaimeconomy.use | Start an auction via single-screen Dialog or arguments |
/claimmarket auction bid [claim] [amount] | landclaimeconomy.use | Place a bid or instant buyout |
/claimmarket auction cancel [claim] | landclaimeconomy.use | Cancel an auction that has no bids |
/claimtax (/ctax) | landclaimeconomy.use | View per-claim upkeep tax status and unpaid balance |
/claimtax pay [claim] | landclaimeconomy.use | Pay overdue upkeep tax immediately |
/claimmarket admin unlist <claim> | landclaimeconomy.admin | Force-remove a marketplace listing |
/claimmarket admin cancelauction <claim> | landclaimeconomy.admin | Cancel an auction and refund the high bidder |
/claimmarket admin history <player> | landclaimeconomy.admin | Inspect a player's transaction ledger |
/claimmarket admin reload | landclaimeconomy.admin | Reload addon config, messages, and scheduler timers |
/claimtax admin run | landclaimeconomy.admin | Trigger an immediate upkeep tax cycle |
Permission nodes
| Node | Default | Description |
|---|---|---|
landclaimeconomy.use | true | Access /claimmarket, /claimtax, and buying/selling flows |
landclaimeconomy.bypass | op | Bypass claiming, warp, invite, and slot charges |
landclaimeconomy.bypass.tax | op | Exempt owned claims from daily upkeep tax and eviction |
landclaimeconomy.admin | op | Administrative 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.0Database tables (lce_*)
Stored inside LandClaimPlugin's configured SQLite, MySQL, or MariaDB pool:
| Table | Purpose |
|---|---|
lce_transactions | Audit log of all charges, refunds, taxes, market sales, and auction bids |
lce_player_state | Persistent first_claim_used, daily_spent, and rolling 24-hour window timestamp |
lce_chunk_costs | Recorded per-chunk charge and payer UUID for voluntary unclaim refunds |
lce_warp_costs | Recorded warp creation and upgrade spend for deletion refunds |
lce_tax_ledger | Per-claim last_paid_at, unpaid_days, and last_known_chunks |
lce_market_listings | Active marketplace listings |
lce_auctions | Timed auctions, active bid state, extensions_used, and status |
lce_pending_payouts | Queued offline deposits and refunds delivered on player join |