diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index d518d05ffc..f42a5e0af2 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -794,6 +794,11 @@ public void handle(Login login) throws Exception Preconditions.checkState( !receivedLogin, "Not expecting login" ); receivedLogin = true; + // check if the players connection is ip-forwarded, spoof value to true to bypass the unsecure chat popup + if ( !con.getRewriteId().equals( con.getPendingConnection().getOfflineId() ) ) + { + login.setSecureProfile( true ); + } ServerConnector.handleLogin( bungee, server.getCh(), con, server.getInfo(), null, server, login ); throw CancelSendSignal.INSTANCE;