Storage & Data Files

3commands
4files
2min read
Sheet 25 of 33 · Server Admin

Filesconfig.yml · plugins/IgnitePaste/data/cooldowns.yml · data/buildings.yml · buildings.yml

Fileconfig.ymlFileplugins/IgnitePaste/data/cooldowns.ymlCommand/paste reloadCommand/paste statsIgnitePaste keeps two kinds of data. Cooldowns, use counts and stats go to the backend you choose under storage. Buildings always go to files on the server itself, because they belong to that server's worlds.

Backends

config.yml
storage:
  backend: YAML              # YAML, SQLITE or MYSQL
  sqlite-file: data/cooldowns.db
  host: localhost
  port: 3306
  database: ignitepaste
  username: root
  password: ""
  use-ssl: false
  max-pool-size: 6
BackendWhereUse it for
YAML (default)plugins/IgnitePaste/data/cooldowns.ymlA single server. No setup
SQLITEplugins/IgnitePaste/<sqlite-file>A single server with a lot of players and schematics
MYSQLYour database serverSeveral servers sharing cooldowns, use limits and stats

Command/paste reloadThe SQLite and MySQL drivers and HikariCP are fetched by Paper on start; nothing to install. A misspelled backend logs Unknown storage.backend '<value>', falling back to YAML and uses YAML. With SQL the console prints Using SQL cooldown backend: MYSQL. Change it and run /paste reload: the old backend is flushed and closed, the new one opened. If the new one cannot start, the old one keeps running and the reload says so. Switching backends starts from empty data, nothing is migrated. With cooldown.persist: false cooldowns and use counts are not written at all; stats still are.

A MySQL setup for a network:

config.yml
storage:
  backend: MYSQL
  host: db.yourserver.net
  port: 3306
  database: ignitepaste
  username: paste_user
  password: "your_password_here"
  use-ssl: true
  max-pool-size: 6

IgnitePaste creates its tables on start:

TableColumnsHolds
ignitepaste_cooldownsplayer_uuid, schematic, last_use_millisLast paste time per player and schematic
ignitepaste_usesplayer_uuid, schematic, total_usesPaste count per player and schematic
ignitepaste_statsschematic, total_pastes, total_revenue, last_paste_epochTotals behind /paste stats

Everything is loaded into memory on start and written as pastes complete.

Files on disk

plugins/IgnitePaste/
config.yml
messages.yml
data/
  cooldowns.yml                      # YAML backend only
  cooldowns.db                       # SQLite backend only
  buildings.yml                      # every tracked building
  buildings/terrain/<building>.dat   # the ground under each building
  buildings/captured/<name>.schem    # one per blueprint in circulation
  buildings/captured/<name>.yml      # its display name
  pending-items.yml                  # blueprints, vouchers and refunded items for offline players
  pending-refunds.yml                # money a server stop could not pay back yet
logs/paste.log                       # with paste-log.enabled

buildings.yml

data/buildings.yml
buildings:
  0ee17ccd-5c1b-4d0e-9b5e-2f7c1a9e4b10:
    owner: c12cc45b-0377-32a5-8fa0-d0f7cc95b22c
    owner-name: Mason
    schematic: buildings/cottage_t3
    world: world
    origin:
      x: -154
      y: 77
      z: -215
    rotation: 180
    flip-x: false
    flip-z: false
    box:
      min-x: -160
      min-y: 77
      min-z: -222
      max-x: -148
      max-y: 95
      max-z: -208
    created-at: 1790799541000
    updated-at: 1790800112000

Command/paste building removeFilebuildings.ymlThe id's first 8 characters are the short id used by /paste building remove and shown in the manager. The file is rewritten on every change. To move buildings to another server, copy buildings.yml and the buildings/ folder along with the world.

Terrain snapshots

When a tracked paste completes, the blocks it replaced are written to data/buildings/terrain/<id>.dat, one block per line. Pick-up and shrinking upgrades read it to put the ground back. Deleting a snapshot is safe but those spots then come back as air.

Captured blueprints

Pick-up saves the building's current state as a real .schem in data/buildings/captured/, named after the building, for example watchtower-435afb56. It is indexed as a hidden schematic (never shown in the selector) and deleted once the blueprint is placed. Keep this folder: a blueprint whose file is gone cannot be placed.

Backups

Back up plugins/IgnitePaste/data/ with your worlds. The cooldown data can be rebuilt by time; the buildings cannot.

Loading the index

Enter openUp Down moveEsc close