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.
- 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".
- 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.
motd: '&4My Little Network'
motd: '&9Hub 1'
motd: '&9Hub 2'
motd: '&9Hub 3'
motd: '&9Hub 4'
motd: '&9Hub 5'
- /hub: sends user to hub.
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: