This is the plugin that authenticates players as they login against gudchalmers/chs-mclink-backend and kicks them if they are not linked.
- An instance of gudchalmers/chs-mclink-backend running
- An instance of Velocity 1.1.0+ to run the plugin on
- Java 11
- Gradle 6
To build the plugin run:
# Windows
gradlew.bat shadowJar
# Linux
./gradlew shadowJar
The plugin will be located in build/libs/
when done building.
Once the plugin have run once a config file have been created in velocity_install/plugins/mclink/config.toml
.
The default config looks like this:
mclink_backend = "https://mc.chs.se/"
ignored_servers = ["auth"]
permission = "velocity.command.server"
token = ""
mclink_backend
is the base url to the backend server running gudchalmers/chs-mclink-backend.ignored_servers
a list of servers to ignore connections to, needed for the one running gudchalmers/chs-mclink to auth players.permission
if the player have this permission they bypass the auth check.token
is the shared key from gudchalmers/chs-mclink-backend to auth the api.