Skip to main content

Installation

Requirements​

ServerPaper or Spigot, Minecraft 1.20.1 to 1.21
Java17 or newer
PlaceholderAPIOptional, for placeholders
MySQL or MariaDBOptional. Backpacks are stored in a JSON file unless you choose SQL

Nothing else is needed: the libraries the plugin uses are inside the jar.

Install​

  1. Download NexalBackpacks-<version>.jar from your account on nexalstudios.com.
  2. Put it in your server's plugins/ folder.
  3. Start the server (or restart it). Do not load it with a plugin manager while the server runs.
  4. Check the console for NexalBackpacks enabling without errors.

The first start creates plugins/NexalBackpacks/:

FileWhat it is
config.ymlStorage, auto-pickup notifications and the backpack types with their menus
messages.ymlEvery message, sound and menu text
data.jsonThe backpacks and player preferences, when storage is JSON

The default config.yml ships seven backpack types, each with a crafting recipe, so players can craft backpacks right away. Getting Started walks through them.

Use MySQL or MariaDB instead​

JSON is fine for most servers. Use SQL when several servers share the same backpacks or you already run a database:

  1. Stop the server.
  2. In config.yml, set storage.type: sql and fill in storage.sql (host, port, database, username, password).
  3. Start the server. The plugin creates its two tables on its own.

Already have backpacks in JSON? Move them first: see Moving between JSON and SQL.

Updating​

  1. Stop the server.
  2. Replace the old jar in plugins/ with the new one.
  3. Start the server.

Your config.yml, messages.yml and data are kept. When an update changes the layout of config.yml, the plugin rewrites it on the first start so your menus look the same as before, and keeps the old file next to it as config.yml.v<N>.bak. New messages that your messages.yml does not have yet use their defaults until you add them.

The changes in each version are on the plugin's page at nexalstudios.com.