Plugin setup
After installing the CommandBridge plugin and restarting your servers, follow this guide to configure it properly. This guide assumes you have restarted all servers with the plugin installed.
Important Information
Paper Servers
Velocity Server
In this guide, when referring to "clients," it means all the Paper servers connected to your Velocity server.
Verify File Generation
After restarting your servers, the following files and folders should be generated:
Paper Servers
Velocity Server
Key Notes:
The
secret.key
file is only generated on the Velocity serverBoth Velocity and Paper servers have:
config.yml
: Configuration file specific to each serverscripts/
: A folder containing theexample.yml
script template
If these files and folders match your setup, proceed to the next steps. Otherwise, ensure the plugin is installed correctly.
Step 1: Setup the Secret Key
Open the
secret.key
file in the Velocityplugins/CommandBridge
folder.Copy the key and paste it into the
secret
field in theconfig.yml
file of all Paper servers:Replace
"CHANGE_ME"
with the value fromsecret.key
.
Do not share this key. Anyone with access to the key can connect to your CommandBridge server and execute commands.
Step 2: Set Up Client and Server IDs
Each Paper server is a client and needs a unique identifier.
On Paper
In
config.yml
, set theclient-id
for each Paper server. Ensure each client has a unique identifier. For example, if the server is called "lobby," set theclient-id
tolobby
:
On Velocity
In
config.yml
, set theserver-id
. By default, this is set tomain
. You can leave this as is unless youβre connecting additional servers.
Step 3: Configure Velocity
Set the Host
Open on Velocity
config.yml
.Locate the
host
field. By default, this is set to0.0.0.0
.If youβre using a hosting provider, leave it as is.
If self-hosting, you can set it to
127.0.0.1
(localhost) if the server and clients run on the same machine.
Open a Port
Choose an unused TCP port for CommandBridge.
Update the
port
field inconfig.yml
with the open port. Example:Self-Hosting: Open the port on your machine. This depends on your OS and network configuration.
Hosting Providers: Use their control panel to open an additional port.
Set the SAN (Subject Alternative Name)
Locate the
san
field inconfig.yml
.Add the IP address of your Velocity server or the domain name (without the port). Example:
Step 4: Configure Paper Clients
Set the Remote and Port
Set the
remote
field to the IP address of the Velocity server (without the port). Example:Set the
port
field to match the port configured in the Velocityconfig.yml
.
Step 5: Restart Servers
Restart your servers in the following order:
Restart Velocity first.
Then, restart all connected Paper servers.
Validation
While the servers are starting, check the Velocity console for logs like these:
If these logs appear, your configuration is successful. If not, review the configuration files for errors.
Last updated
Was this helpful?