Setup Cross server
Step 1
Set the database type to MySQL and specify the database configuration.
database:
# Database type: SQLITE, MYSQL
type: MYSQL
# MySQL connection settings
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: passwordStep 2
Install redis for testing purpose (fast, 2 min)
Go on
RedisRegister or log-in with Google or something
Select a cloud vendor of your region
Click on the database named "yourname-free-db"
There is a parameter called Public Endpoint where you would find a
very-long-hostname:portIn the Security section you would find username and password
Now you can build your redis-uri like this
redis://username:password@very-long-hostname:portDone
Step 3
You need to enable the cross-server setting. Specify the server_id as the name of the server that is connected to Velocity or BungeeCord. Provide the Redis connection details.
Step 4
After configuring all the data, you need to restart the server.
It is strongly recommended not to reload the plugin using third-party plugins to avoid errors, memory leaks, and other issues.
Step 5
You have successfully enabled the cross-server feature in the plugin and can now join the queue from any server connected to the cross-server system.
Last updated