mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
#3437: Remove unused enum in ServerConnector and add color to exception message
This commit is contained in:
parent
68200133b6
commit
a96a2e80a1
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user