This plugin will automatically send player connecting to your bungee server to less loaded hub server. Also adds /hub command which will send player to hub.
Features:
- Supports unlimited number of server groups with auto-created /<name> command and "balancer.<name>" permission.
- Will automatically ping all hub servers to ensure they are online, so when one of your hubs goes down it will just marked as "dead".
Installation:
- Put mcBalancer.jar to your BungeeCord plugins folder.
This section describes default config installation.
At first you need to add server named "hub" to your BungeeConfig. This server should not be real, so you don't really need to have it running. Just add it with any IP and port combination and make it default so all connected players will go to "hub". Then you need to name all your hub servers with this pattern: "hub<number>". At the start plugin will mark all this servers as hub.
Code (Text):servers:
hub:
address: localhost:40000
restricted: false
motd: '&4My Little Network'
hub1:
address: localhost:25750
restricted: false
motd: '&9Hub 1'
hub2:
address: localhost:25751
restricted: false
motd: '&9Hub 2'
hub3:
address: localhost:25752
restricted: false
motd: '&9Hub 3'
hub4:
address: localhost:25753
restricted: false
motd: '&9Hub 4'
hub5:
address: localhost:25754
restricted: false
motd: '&9Hub 5'
Commands:
- /hub: sends user to hub.
Permissions:
balancer.hub - to use /hub command
Config file description:
pingDelay - interval between group ping in millis. Each server group have it own ping-thread. Default: 5000; You can change it to lower values if you need more precise balancing in multi-bungee environment.
pingTimeout - ping socket timeout in millis. Default: 2000; Change it if you know what you're doing.
entries section. This contain all server groups. All server groups have these 3 parameters:
- mountPoint - this is your virtual server, all connections to this server are balanced to servers matching regexp pattern. createCommand - will plugin auto create command /<mountPoint> with balancer.<mountPoint> permission.
Default hub section:
Code (Text):{
"mountPoint": "hub",
"pattern": "(hub)(\\d+)",
"createCommand": true
}

mcBalancer 1.1
Easy way to balance players on your hub servers!