Skip to content

A simple plugin that supports evenly teleporting players to different default or forced-host servers when login.

License

Notifications You must be signed in to change notification settings

carm-outsource/ProxyAllocate

Repository files navigation

ProxyAllocate

CodeSize Download Java CI with Maven Support

A super lightweight Velocity plugin that supports evenly teleporting players to different default or forced-host servers when login.

No configurations and commands, just a simple function implementation.

Example

In Velocity's velocity.toml configuration file, like

[servers]
server1 = "127.0.0.1:1001"
server2 = "127.0.0.1:1002"
server3 = "127.0.0.1:1003"
server4 = "127.0.0.1:1004"

game1 = "127.0.0.1:2001"
game2 = "127.0.0.1:2002"
game3 = "127.0.0.1:2003"
game4 = "127.0.0.1:2004"

try = [
    "server1", "server2", "server3", "server4"
]

[forced-hosts]
"play.your-server.net" = [
    "game1", "game2", "game3", "game4"
]

after configured, when a player login to the proxy,

if the player's IP is play.your-server.net, the player will be teleported to the server with the least number of players in game1, game2, game3, game4.

if there's no any forced-hosts matched, the player will be teleported to the tried servers with the least number of players in server1, server2, server3, server4.

Open source agreement

The source code of this project uses GNU General Public License v3.0 License.

About

A simple plugin that supports evenly teleporting players to different default or forced-host servers when login.

Topics

Resources

License

Stars

Watchers

Forks

Languages