Network / Start

1 min readMarkdown

Moving to Glacier

Move an existing install from the previous plugin names to GlacierHub and GlacierStaff.

The Glacier releases rename the plugins, packages, permissions, commands, placeholders and storage tables. Your data comes with you if you move it in this order.

Before you start

  1. Stop the server.
  2. Back up the old plugin folder and the database.
  3. Make sure no one is still in a temporary mode: PvP mode, Staff Mode, a freeze, or a pending inventory recovery. Item tags use the plugin’s namespace, so items handed out under the old name won’t be recognised afterwards.

GlacierHub

  1. Remove the old JAR and add GlacierHub-2.0.1.jar.
  2. Move the saved plugin folder to plugins/GlacierHub/. Keep its recovery/ folder and storage.yml.
  3. SQLite or MySQL: rename the existing storage table to glacierhub_storage before the first start.
  4. MongoDB: keep the existing database or connection URI in storage.yml.
  5. Update permissions, namespaced commands, placeholders and any references in your own YAML to the Glacier names.

GlacierStaff

  1. Remove the old JAR and add GlacierStaff-3.0.0.jar.
  2. Move the saved plugin folder to plugins/GlacierStaff/. Keep its recovery files and storage settings.
  3. SQLite or MySQL: rename the storage table to glacierstaff_storage.
  4. MongoDB: keep the existing database or connection URI.
  5. Update permissions, commands, placeholders and YAML references.
  6. On a network, switch every node together and use a matching Redis namespace.
  7. Rename the environment variables for Staff Auth and Discord to the GLACIERSTAFF_ names. Keep the same Staff Auth encryption key, or existing enrolments can’t be read.

What to rename

Kind New form
Permissions glacierhub.*, glacierstaff.*
Commands /glacier<name>, with the short alias kept
Command namespace glacierhub:, glacierstaff:
Placeholders %glacierhub<module>_…%, %glacierstaff<module>_…%
Maven artifact dev.glacierlabs:GlacierHub, dev.glacierlabs:GlacierStaff
API imports dev.glacierlabs.glacierhub.api, dev.glacierlabs.glacierstaff.api
Environment variables GLACIERSTAFF_STAFFAUTH_KEY, GLACIERSTAFF_DISCORD_BOT_TOKEN, GLACIERSTAFF_DISCORD_WEBHOOK_URL

Getting the new defaults

Existing files keep your edits. To get the Glacier defaults for a module or language file, back it up, delete it, start the server to regenerate it, then copy your custom settings back in.