From a96a2e80a1781d08bb5495bbc305c5c985bb4b84 Mon Sep 17 00:00:00 2001 From: Outfluencer <48880402+Outfluencer@users.noreply.github.com> Date: Sat, 10 Jun 2023 09:58:14 +0200 Subject: [PATCH] #3437: Remove unused enum in ServerConnector and add color to exception message --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index 3f01fb243..a99d9914a 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -73,7 +73,7 @@ public class ServerConnector extends PacketHandler private enum State { - LOGIN_SUCCESS, ENCRYPT_RESPONSE, LOGIN, FINISHED; + LOGIN_SUCCESS, LOGIN, FINISHED; } @Override @@ -84,13 +84,13 @@ public class ServerConnector extends PacketHandler return; } - String message = "Exception Connecting:" + Util.exception( t ); + String message = ChatColor.RED + "Exception Connecting: " + Util.exception( t ); if ( user.getServer() == null ) { user.disconnect( message ); } else { - user.sendMessage( ChatColor.RED + message ); + user.sendMessage( message ); } }