One-Time Paste

2commands
1file
2min read
Sheet 11 of 33 · Paste Mode

Filesconfig.yml

Fileconfig.ymlCommand/paste onetimeCommand/paste stopA one-time session is paste mode for exactly one paste of one schematic. There is no selector and no undo: the player places the build they were given, and paste mode closes itself once it is done.

Four things open one:

SourcePaymentHow
/paste onetime <player> <schematic>Normal price, cooldowns and limits applyConsole only. For shops, crates, quests and other plugins that run console commands
A voucherMoney and material cost waived, the voucher is the paymentRight-click the item
A blueprintWaived, the building was already paid forRight-click the item
Another plugin, through the Developer APIUsually paid by that pluginFor example IgniteSky's template gallery

The toolset

Fileconfig.ymlThe tools shift left and a close item takes slot 9. The slots are fixed; only the materials, names, lore and models come from tools in config.yml.

SlotTool
1Rotation Dial
2Distance Adjuster
3Vertical Adjuster
4Preview Toggle
5Anchor Lock
6Paste Wand
9Close One-Time Paste (tools.close, red dye by default)

How it ends

  • After a successful paste, including the end of a construction: One-time paste completed. Closing paste mode., then One-time paste mode finished. Inventory restored.
  • Command/paste stopWith the close item or /paste stop: the session ends without pasting. A voucher or blueprint that opened it goes back to the inventory.
  • On logout: the same as closing.

Handing out pastes from other plugins

The console command checks that the player is online, that the schematic exists and that the player has its permission and is in an allowed world. It does not check money or cooldowns up front: those are checked when the player pastes, like any other paste.

a shop plugin's console command
paste onetime %player% decor/market_stall

The console gets Started one-time paste for Steve using decor/market_stall. and the player Loaded one-time schematic decor/market_stall. Adjust, lock anchor if needed, then paste.

Loading the index

Enter openUp Down moveEsc close