This plugin internally uses the server api to get the online cloud servers. It also provides code to make own implementations for other proxy software easy.
Server Registration Plugin
The registration plugin updates registered proxy child servers according to the clouds registered servers. If your SimpleCloud installation uses a proxy, you need this plugin to make that proxy work correctly.
DownloadSupported proxy versions
A list of all maintained implementations. If you find your proxy in this list it means that your proxy is supported.
Proxy type | Server API availability | Plugin availability | Out of the box support |
---|---|---|---|
Velocity | ✅ | ✅ | ✅ |
Bungeecord | ✅ | ✅ | ✅ |
Gate | ✅ | ❌ (but its planned) | ❌ (but its planned) |
Other | ❓ (see available languages) | ❌ | ❌ (you can easily get it working by using your own implementation, but only if the server API is available) |
Configuration
The config config.yml
File is located in the data folder. These are the available configuration options options:
# The pattern on how registered server should be named. Available placeholders are:
# GROUP_NAME - The name of the servers group
# ID - The unique id of the server
# NUMERICAL_ID - The numerical id of the server
serverNamePattern: "%GROUP_NAME%-%NUMERICAL_ID%"
# A list of all server groups that should never be registered on this proxy
ignoreServerGroups:
- "bedwars"
- "skywars"
# A list of non cloud servers that should be registered on this proxy, the name field being the display name the server will be registered to.
additionalServers:
- name: "build"
address: "127.0.0.1"
port: 225555
Own implementation
The registration plugin adds the interface ServerRegisterer
, which makes it easy to create your own version of this plugin.
interface ServerRegisterer {
// Returns all currently registered servers
fun getRegistered(): List<Server>
// Is called whenever a new server successfully mounted on the its port, or when a server is reattached (after cloud restart)
fun register(server: Server)
// Is called whenever a server is no longer mounted to its port
fun unregister(server: Server)
}
There is more you need to do for your own implementation. You can use the Velocity implementation as reference for creating a custom registration plugin.