Suppress console noise

This commit is contained in:
NotAlexNoyle committed 2026-04-23 10:08:14 -04:00
1 parent da25b6a7b6
commit 88ea5bd3e2
1 file changed
+3 -1
@@ -57,7 +57,9 @@ public class PaperPlayer implements PlayerProvider {
@Override
public void disconnect() {
handshakeEvent.setCancelled(false); // Caused issues with newer versions of Paper (Thanks https://github.com/realDragonium)
handshakeEvent.setFailMessage("Connection failed. Please try again or contact an administrator.");
// Keep the kick reason empty so Paper does not echo a plugin-defined failure
// message back into the console on rejected proxy-bypass handshakes.
handshakeEvent.setFailMessage("");
handshakeEvent.setFailed(true);
}