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 prevent data conflicts.
- Verify that the source plugin's data files or database are accessible.
- Run the migration command from the server console for best results.
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
/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 awaiting 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 SQLite and MySQL/MariaDB V3 databases are supported.
- The migrator connects to your V3 database
- 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 is transferred
- Timestamps and expiration data are preserved
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 - Start the server and verify V4 loads correctly
- Run the migration command:
/ah admin migrate zauctionhousev3 confirm - Wait for the migration to complete (console will show progress)
- Verify data by checking
/ahand admin panels - Once verified, you can remove zAuctionHouse V3
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're using multiple economies, ensure they are configured in V4 before migration. The migrator will attempt to map economy types automatically.
Troubleshooting
Migration fails to start
- Verify you have
zauctionhouse.adminpermission - Ensure you included
confirmin the command - Check 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 migration twice, duplicate items may appear. To fix:
- Stop the server
- Restore your database backup
- Run 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.
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.
Commonly 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.