Storage setup
You can choose between several storage options for the plugin.
File storage
The easiest and default option is to store all data in a file on the server. It does not require any additional setup.
Database storage
The plugin supports MySQL and MariaDB databases. You can use either of them to store all data in a database instead of a file. This is required for multiserver setups.
Multiserver setup
You can setup the auction house to work across multiple servers. This allows players to sell and buy items from other servers, increasing the player base and activity in the auction house.
Requirements
Here are the requirements for setting up multiserver:
- A database that is accessible from all servers (MySQL or MariaDB are supported)
- A Redis server that is accessible from all servers (only Pub/Sub is used)
- All servers must be running NexusAuctionHouse+ 2.0.0 or higher (always use the latest version)
Setup
-
Visit config.yml in NexusAuctionHouse+'s folder and see the data section.
a. If you have existing data on your server and wish to import it to the database, set "enable-migration" to true. (Data importing will run on server startup. It can take up to a few minutes if you have a lot of stored data)
b. Enable the database in its section, and configure the type, host, port, username, password and database
c. Enable multiserver in its section, and configure the redis host, port, password and username. Make sure "server-name" is unique for each server
-
Restart all servers after setting this up
-
The auction house will now be functional and synced.
⚠️ The plugin does not transfer money between servers. For example, if player 1 sells an item on server A and player 2 buys it on server B, the money will be given to 1 on server B. Therefore, make sure you have a syncronized economy plugin across all servers. Also make sure it is compatible with NexusAuctionHouse+.