Install1 min read
BungeeCord & Waterfall
The proxy plugin for BungeeCord and Waterfall networks.
- Artifact
TehoAPI-Bungee.jar- Plugin name
TehoAPI- Proxies
- BungeeCord, Waterfall
- Java
- 8 or newer
The BungeeCord plugin does the same job as the Velocity plugin: the proxy owns the Teho handshake and tells each backend about the player over a signed channel.
Install
- Download
TehoAPI-Bungee.jarand put it in the proxy'splugins/folder and start it once. It writesplugins/TehoAPI/config.yml. - Put
TehoAPI.jaron every backend. - Set the same
proxy.secret, at least 16 characters, on the proxy and on every backend. - Turn on
ip_forward: truein BungeeCord'sconfig.yml, so backend UUIDs match the proxy's. - Restart everything.
server-name: "Skyline Network"
proxy:
secret: "replace-with-a-long-random-string"
welcome:
enabled: true
title: "&bWelcome, {player}"
body: "This network supports Teho"The proxy config supports the same keys as on Velocity.
Use it from a Bungee plugin
repositories {
maven("https://repo.tehoclient.dev/releases")
}
dependencies {
compileOnly("dev.tehoclient:teho-api-bungee:1.0.0")
}name: LobbyCore
main: gg.skyline.LobbyCore
version: 1.0.0
depends: [TehoAPI]public final class LobbyCore extends Plugin implements Listener {
@Override
public void onEnable() {
getProxy().getPluginManager().registerListener(this, this);
}
@EventHandler
public void onReady(TehoPlayerReadyEvent event) {
event.getTehoPlayer().social().links(Map.of(
"Discord", "https://discord.gg/skyline",
"Store", "https://store.skyline.gg"));
}
}Bungee events live in dev.tehoclient.api.bungee.event and use @EventHandler: TehoPlayerReadyEvent, TehoConsentEvent, TehoStaffToolEvent and TehoClientEvent.
BungeeTeho.player(ProxiedPlayer) and BungeeTeho.isTeho(ProxiedPlayer) look players up from anywhere.