Let players buy and build schematics on Paper

4commands
4permissions
6files
1figure
6min read
Sheet 5 of 6 · server owners

Filesconfig.yml · cottage_t1.yml · cottage_t2.yml · schematics/buildings/cottage_t1.yml · +2

Fileconfig.ymlFilecottage_t1.ymlCommand/paste startCommand/paste reloadTo let players buy builds on a Paper server, save each build as a WorldEdit schematic, put a .yml next to it with a cost and a construction-duration, turn on economy in IgnitePaste's config.yml and give players the schematic's permission. They pick the build in /paste start, see it as a ghost where they look, confirm the price and watch a worker crew build it block by block. A second schematic named in upgrade-to turns the build into a house they can upgrade later.

A paid paste under construction. The crew lays the build bottom to top.
Worker NPCs in hard hats building the lower walls of a cottage inside the paste outline

Why not just give players WorldEdit

//paste is an admin tool. It drops the whole build in one go, at your position, with no price, no preview the player can trust, no land check and no undo the server controls. Handing it to players means trusting them with every block in the world.

A paste mode for players needs the opposite: a fixed list of builds they are allowed to place, a preview that shows exactly where it lands, a price taken at the right moment, protection checks against other people's land, and a refund when something goes wrong. That is what IgnitePaste is. It uses WorldEdit or FastAsyncWorldEdit to read the schematics and does everything else itself.

Requirements

NeedNotes
ServerPaper 1.21 or newer, built against 1.21.8, or Folia. Tested on Paper and Folia 1.21.11. Spigot is not supported
Java21
RequiredWorldEdit 7.3.6+ or FastAsyncWorldEdit. On Folia, WorldEdit 7.4.1+
For pricesVault and any economy plugin with a Vault hook (EssentialsX, CMI and so on)
OptionalPlaceholderAPI, WorldGuard, PlotSquared, Towny, IgniteSky

Set up your first paid build

    1. Save the schematics

      Build a small house, select it and save it: //copy, then //schem save buildings/cottage_t1. Do the same for a bigger version as buildings/cottage_t2. They land in WorldEdit's or FAWE's schematics folder, which IgnitePaste reads. Stand in the middle of the floor when you copy, so rotation stays predictable.

    2. Give each schematic a sidecar

      Filecottage_t1.ymlFilecottage_t2.ymlNext to cottage_t1.schem, create cottage_t1.yml with a display name, a cost, a construction-duration in seconds, and upgrade-to: buildings/cottage_t2 with an upgrade-cost. Give cottage_t2.yml its own cost and build time and no upgrade-to, so it is the last tier.

    3. Turn on the economy

      Fileconfig.ymlCommand/paste reloadSet economy.enabled: true in config.yml, then run /paste reload. The console should print Vault economy hooked: with your economy plugin's name, and how many schematics it indexed.

    4. Grant the permissions

      Permissionignitepaste.usePermissionignitepaste.buildingsPermissionignitepaste.buildings.upgradePlayers need ignitepaste.use and one node per schematic: its name lowercased with anything outside a-z 0-9 . _ - turned into _, so buildings/cottage_t1 is ignitepaste.schem.buildings_cottage_t1. For upgrades add ignitepaste.buildings and ignitepaste.buildings.upgrade.

    5. Paste it as a player

      Command/paste start/paste start stores the inventory and fills the hotbar with tools. Pick the cottage from the chest in slot 1, look at the ground, rotate with the slime ball, lock the spot with the tripwire hook and right-click the stick. A menu shows the price and the build time; confirm, and the crew starts.

The two sidecars from those steps:

schematics/buildings/cottage_t1.yml
display-name: "<#FFD166><bold>Cottage</bold> <gray>- Tier I"
cost: 1000.0
construction-duration: 40        # seconds; the crew builds it
upgrade-to: buildings/cottage_t2
upgrade-cost: 2500.0
upgrade-duration: 45
schematics/buildings/cottage_t2.yml
display-name: "<#FFD166><bold>House</bold> <gray>- Tier II"
cost: 3500.0
construction-duration: 60

Command/paste buildingsWhen the build finishes, chat confirms the building was registered. /paste buildings lists it, and Upgrade renovates it into the house in place: blocks that are the same in both tiers are left alone.

Prices that are hard to abuse

The rules on when money moves are what keep a paid paste mode from becoming a dupe:

  • The confirmation menu (confirm-purchases: true) lists the price, the build time and every material. Closing it charges nothing, and it times out after confirm-timeout-seconds.
  • The price is checked again on confirm, so spending the money while the menu is open gets the paste refused, not a free build.
  • A construction is charged when it starts. Leaving paste mode or logging out before it finishes cancels it, and with construction.rollback-on-cancel: true (the default) the blocks come out and the money, items and voucher go back.
  • An undo inside refund-window-seconds (30 by default) refunds the money, unless items were taken out of containers in the build.
  • Filedata/pending-refunds.ymlA server stop mid-build puts the blocks back and refunds. If the economy plugin has already shut down, the refund waits in data/pending-refunds.yml and is paid on the next start.

Money is not the only price. cost-items takes items from the inventory, and cost-items: FULL_SCHEMATIC charges the blocks the build is made of. Add cooldown-seconds and max-uses-per-player to a sidecar to limit how often a build can be placed.

Selling builds through other plugins

A voucher is an item bound to one schematic. Right-clicking it opens a one-time paste with that build selected, with no money, material cost or confirmation menu: the voucher is the payment. That makes it the way to sell builds through crates, kits, quests, a shop plugin or player trades.

/paste voucher give Steve towers/watchtower 3

Permissionignitepaste.adminIt needs ignitepaste.admin and runs from the console, so a store or crate plugin can call it. Cooldowns, use limits, building limits and land checks still apply when the voucher is used.

Keeping builds off other people's land

Before any block goes down, the whole footprint is checked against the land plugins that are installed: WorldGuard's BUILD flag, PlotSquared plots, Towny towns and, with IgniteSky, the player's island. The check runs on the rotated build at the spot it will land, and an upgrade is checked again on the bigger tier's box. On servers with many small WorldGuard regions, set region-guard.sample-density: full so a small region inside a big footprint is not missed.

Making it feel like a build

Command/paste speedupConfig keyconstruction.speed-up.multiplierConfig keyconstruction.speed-up.costconstruction-duration: 0 pastes instantly. Anything above it brings in the crew and a boss bar with the progress. /paste speedup lets players pay to finish sooner: each use divides the time left by construction.speed-up.multiplier (3.0 by default), at construction.speed-up.cost or a sidecar's speed-up-cost.

Pick-up runs the crew in reverse and hands back a blueprint of the building as it stood, so players can move a house instead of rebuilding it.

On Folia

IgnitePaste runs on Folia with WorldEdit 7.4.1 or newer, the first WorldEdit release with Folia support. FastAsyncWorldEdit has no official Folia build, so use plain WorldEdit there. A paste waits until one region owns all of its chunks and then builds there, so large pastes work across region borders.

  • Config keypaste.copy-entitiespaste.copy-entities does nothing, because WorldEdit's Folia build places no entities.
  • PlotSquared does not load on Folia, so its hook is inactive. The WorldGuard, Towny and IgniteSky checks work.
  • A build cut short by a server stop is rolled back on the next start.

Where to go next

The IgnitePaste quick start walks the same cottage with screenshots of every menu, and the wiki has a sheet for every sidecar key. IgnitePaste costs 35 EUR, paid once, for one server, from the shop or BuiltByBit.

Where to go next

Written from

  1. IgnitePaste wiki: Quick start, Money & confirmation, Sidecar files