Pterodactyl is a well-known panel use by most of hosters to manage easily their servers. If your servers are running under Pterodactyl, follow these steps to setup BungeeSK correctly.
1- Download the latest version of BungeeSK
First you can download the latest releases of BungeeSK here(or you can download the latest buildshere, these ones are more recents but could be a bit bugged).
2- Upload BungeeSK into your servers
Now just simply drag your downloaded BungeeSK.jar into the plugins folders of your servers (Bungeecord and Spigot servers). Then restart your servers (and please do not reload).
3- Configuring BungeeSK
BungeeSK is using sockets, which must have an open port available. So let's open one for BungeeSK !
3.1- Open a port in Pterodactyl
First go to the Bungeecord panel part
Then go to the "Network" tab
Next click on "Create allocation"
Then another box should be created. In this case, the port 25535 is now allocated to us.
3.2- Change the port into the BungeeSK config
Now let's change the port in the BungeeSK config (path: plugins/BungeeSK/config.yml)
The BungeeSK's default port is 20000
The port is now 25535 !
3.3- Restart your Bungeecord !
Next, juste simply restart your Bungeecord server and BungeeSK should run under the right port !
4- The Skript part
Then, we will need to connect our Spigot servers to the Bungeecord side of BungeeSK
4.1- Create a script file
First, let's create a new script file and put this code in it.
The address: Enter the public IP address of your machine, even if both of the servers are hosted on the same one.
The port: Enter the one obtained from Pterodactyl.
The password: Enter the password that is present in the BungeeSK config into the Bungeecord server.
4.2- Restart your Spigot server
Just restart it, and please don't reload.
5- The end
Then just repeat the same operation for every server you have !
Your are now ready to use BungeeSK !
on skript load:
create new bungee connection:
set address of connection to "ADDRESS"
set port of connection to 25535
set password of connection to "u829bhOHLpEAlPep"
start new connection with connection