Migration
zAuctionHouse V4 includes a built-in migration system that allows you to import data from other auction plugins. This ensures a smooth transition without losing existing listings, expired items, or transaction history.
- Back up your database before running any migration.
- Stop the server or ensure no players are online during migration to avoid data conflicts.
- Verify the source plugin's data files or database are accessible.
- Run the migration command from the server console for best results.
Requirements
Before migrating, ensure your server meets the v4 requirements:
| Requirement | Version |
|---|---|
| Java | 21 or higher |
| Minecraft | 1.20 to 1.21+ |
Required Plugins
| Plugin | Link |
|---|---|
| zMenu | modrinth.com/plugin/zmenu |
| PlaceholderAPI | spigotmc.org/resources/6245 |
Both zMenu and PlaceholderAPI are mandatory for zAuctionHouse v4 to work. The plugin will not function without them.
Migration Command
/ah admin migrate <source> confirm
Permission: zauctionhouse.admin
The confirm argument is required to prevent accidental migrations.
Supported Sources
zAuctionHouse V3
Migrate from zAuctionHouse V3 to V4.
Source aliases: zauctionhousev3, zah, zahv3, v3, zauctionhouse
/ah admin migrate zauctionhousev3 confirm
# or using aliases
/ah admin migrate v3 confirm
Data Migrated
| Data Type | Description |
|---|---|
| Active Listings | All items currently on sale |
| Expired Items | Items that have expired and await retrieval |
| Purchased Items | Items bought by players pending claim |
| Transaction History | Complete sales history |
| Player Data | Seller information and statistics |
How It Works
The migration system reads data from your V3 database and imports it into the V4 database structure. Both V3 SQLite and MySQL/MariaDB databases are supported, as well as JSON storage.
- The migrator connects to your V3 data source
- All auction items are read and converted to V4 format
- Item NBT data is preserved, including custom items from other plugins
- Player UUIDs and names are maintained
- Price and economy information are transferred
- Timestamps and expiration data are preserved
Configuration
Configure the V3 migration source in config.yml:
migration:
zauctionhouse-v3:
# Storage type of your V3 data: SQLITE, MYSQL, MARIADB, or JSON
source-type: SQLITE
table-prefix: "zauctionhouse_"
# SQLite settings
sqlite-path: "plugins/zAuctionHousev3/database.db"
# MySQL/MariaDB settings
host: "localhost"
port: 3306
database: "zauctionhouse"
user: "root"
password: ""
# JSON settings
json-folder: "plugins/zAuctionHouseV3"
| Source Type | Description | Key Settings |
|---|---|---|
SQLITE | Local file-based database (default) | sqlite-path |
MYSQL | MySQL database server | host, port, database, user, password |
MARIADB | MariaDB database server | Same as MySQL |
JSON | JSON file storage | json-folder |
Prerequisites
- zAuctionHouse V3 data must be accessible (same database or file location)
- zAuctionHouse V4 must be properly configured with storage
- Both plugins should use the same storage type for best results
Migration Steps
- Install zAuctionHouse V4 alongside V3 (don't remove V3 yet)
- Configure V4's database connection in
config.yml - Configure the migration source settings in the
migrationsection ofconfig.yml - Start the server and verify V4 loads correctly
- Run the migration command:
/ah admin migrate zauctionhousev3 confirm - Wait for the migration to complete (the console will show progress)
- Verify the data by checking
/ahand admin panels - Once verified, you can remove zAuctionHouse V3
Configuration
The configuration system has been completely rewritten in v4. You cannot migrate your v3 configuration - you will need to reconfigure the plugin from scratch.
The default configuration is available in multiple languages:
| Language | Status |
|---|---|
| English | Available |
| French | Available |
| Spanish | Available |
| Italian | Available |
When you first install v4, the plugin will generate the configuration files in your server's default language. You can then customize them as needed.
Configuration Steps
- Backup your v3 configuration - Keep your old
config.ymlas a reference - Install zAuctionHouse v4 - The plugin will generate new configuration files
- Manually reconfigure - Use your v3 config as reference to set up v4
- Test your changes - Verify everything works as expected
Migration Tips
Large Databases
For servers with thousands of listings, migration may take several minutes. The console will display progress updates. Do not interrupt the process.
Different Storage Types
If migrating from SQLite to MySQL (or vice versa), the migration handles the conversion automatically. However, ensure your target database is properly configured before starting.
Item Compatibility
zAuctionHouse V4 uses modern item serialization that preserves all item data including:
- Custom model data
- NBT tags from other plugins (MMOItems, ItemsAdder, Oraxen, etc.)
- Enchantments and attributes
- Lore and display names
- Custom plugin metadata
Economy Data
If you use multiple economies, ensure they are configured in V4 before migration. The migrator will attempt to map economy types automatically.
Troubleshooting
Migration doesn't start
- Ensure you have the
zauctionhouse.adminpermission - Make sure you included
confirmin the command - Check the console for error messages
Items not appearing after migration
- Verify the migration completed successfully (check console)
- Clear the cache:
/ah admin cache clear <player> - Restart the server
Duplicate items
If you accidentally run the migration twice, duplicates may appear. To fix:
- Stop the server
- Restore your database backup
- Run the migration once more
Missing transaction history
Transaction history migration depends on V3's logging configuration. If logging was disabled in V3, historical data may be limited.
Migration Checklist
- Ensure Java 21 is installed
- Verify server is running Minecraft 1.20+
- Install zMenu
- Install PlaceholderAPI
- Backup your v3 database
- Backup your v3 configuration (for reference)
- Install zAuctionHouse v4
- Configure the
migrationsection inconfig.yml - Run
/ah admin migrate zauctionhousev3 confirmto migrate items - Reconfigure the plugin using the new configuration files
- Test everything works correctly
Future Migration Support
Additional migration sources may be added in future updates. If you need migration support for a specific auction plugin, please request it on our Discord server or GitHub.
Frequently Requested
The following plugins are being considered for future migration support:
- AuctionHouse by klgr2001
- CrazyAuctions
- AuctionMaster
- PlayerAuctions
Migration support depends on the source plugin's data format and structure. Some plugins may not be feasible to support.