Skip to content

Commit 58e597d

Browse files
committed
fix(bungee): Correctly register AuthMe channel
1 parent 71650b9 commit 58e597d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

authme-bungee/src/main/java/fr/xephi/authme/bungee/AuthMeBungeePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void onEnable() {
1313
getProxy().getPluginManager().registerListener(this, proxyBridge);
1414
getProxy().getPluginManager().registerCommand(this, new BungeeReloadCommand(configManager, proxyBridge));
1515
proxyBridge.logConfigurationDetails();
16-
proxyBridge.broadcastProxyStartedHandshake();
16+
proxyBridge.registerChannels();
1717
}
1818

1919
@Override

authme-bungee/src/main/java/fr/xephi/authme/bungee/BungeeProxyBridge.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ void logConfigurationDetails() {
8585
}
8686
}
8787

88+
void registerChannels() {
89+
proxyServer.registerChannel(AUTHME_CHANNEL);
90+
logger.info("Registered AuthMe BungeeCord bridge channel");
91+
broadcastProxyStartedHandshake();
92+
}
93+
8894
void broadcastProxyStartedHandshake() {
8995
byte[] payload = createProxyStartedMessage();
9096
int notified = 0;
@@ -251,6 +257,7 @@ public void onPlayerDisconnect(PlayerDisconnectEvent event) {
251257
}
252258

253259
void shutdown() {
260+
proxyServer.unregisterChannel(AUTHME_CHANNEL);
254261
retryScheduler.shutdownNow();
255262
}
256263

0 commit comments

Comments
 (0)