-
-
Notifications
You must be signed in to change notification settings - Fork 43
Legacy Migration
This page details the process of migrating from HuskTowns v1.8.2 to HuskTowns v2.x.
HuskTowns' migrator will migrate all existing claims to HuskTowns v2.x—except for Admin claims. Due to the differences in how the claim system saves data, you will need to re-create admin claims after you've completed setup and migration using /admintown claim
.
✅ Ensure all servers are offline and that users can't connect to your network before beginning migration
Please follow the steps below to upgrade from HuskTowns v1.8.2. If you're running an earlier version, please update to HuskTowns v1.8.2 first before migrating from v2.x.
- Navigate to
~/plugins/HuskTowns/
on your server - Move all the files out of this folder, placing them somewhere safe on your computer
- Delete the HuskTowns v1.8.2 jar file from your
~/plugins/
folder and replace it with HuskTowns v2.x - Repeat steps 1-3 for each server running HuskTowns on your network (if you're using cross-server mode).
- Start all your servers, then stop them shortly afterward.
- Navigate to
~/plugins/HuskTowns/
on your server and check that the plugin has generated new config files - Open the newly generated
config.yml
and your old v1config.yml
you copied over earlier side-by-side.- If you previously used MySQL: set the database type to
MYSQL
and enter your connection credentials—but make sure that the table names are new names and don't match the existing table names used. - If you previously used cross-server ("bungee") mode: ensure the cross-server mode setting is set to true in this file
- Fill in other settings to match your existing settings with their equivalents (e.g. the Admin town name, etc).
- Make sure the disabled worlds lists in both config files match so that HuskTowns correctly generates the needed claim worlds.
- If you previously used MySQL: set the database type to
-
If you customised the town roles previously: Open the newly generated
roles.yml
and your old v1config.yml
you copied over earlier side-by-side.- Under "names" in the new file, enter the role name and associated weight as it is defined in the old config file
- Under "roles" in the new file, add the list of privileges for each weight. If you don't wish to assign any privileges at a role level, instead of the list, enter
[]
after the colon
-
If you customised the town flag defaults previously: Open the newly generated
rules.yml
and your old v1config.yml
you copied over earlier side-by-side.- Fill in the default flag rules for each claim type, the wilderness, admin claims and unclaimable worlds as it is set up in your old config
- You can also edit
flags.yml
to customize the actions permitted for each flag
-
If you are using cross-server mode: Create a new file called
server.yml
and open your old v1config.yml
you copied earlier side-by-side- At the top of the file, type
name: '<server>'
, replacing<server>
with the ID name of this server as it is defined in your old config.
- At the top of the file, type
- Update your
messages-xx-xx.yml
file to your liking. Note you can't use your old file as the interfaces and system messages have been completely rewritten. - Repeat steps 1-7 for each server running HuskTowns on your network
- Start all your servers
⚠️ If you have any HuskTowns v2 data in your table, it will be deleted when you start the migration process
- In the console of one of your servers, type
husktowns migrate legacy
- Read the on-screen instructions carefully and ensure the parameters listed are correct. If you previously used MySQL, for instance, ensure the parameters match that of your MySQL database and that the database type is set to
MYSQL
- If you need to change a parameter, use
husktowns migrate legacy set <parameter_name> <value>
to do so - When you're happy, run
husktowns migrate legacy start
to begin the process. This can take several minutes to complete.- You may receive a warning that it was unable to migrate the Administrators town over. This is expected, as the migrator doesn't support migrating admin claims.
- Be sure to re-create your admin claims after you've finished setup.
- When the migration has finished, restart every server.
Your data should then have migrated. You can check that it has used the town list
command in console or in-game.
This documentation is available via william278.net |
---|
- 📚 Setup
- 📦 Legacy Migration
- 📁 Database
- ⛅ Redis Support
- 📄 Config Files
- 📝 Translations
- 🔌 Hooks
- 🖥️ Commands
- 🏙️ Towns
- 🏠 Claims
- 🔨 Roles
- 🌟 Advancements
- ☯️ Relations
- ⚔️ Wars
- 🚫 Inactive Town Pruning
- 📦 API v3
- 🧡 Towns API
- ⚙️ Claims API
- ❗ API Events
- 🕸️ API v1 (Legacy)