From 936381d3e00eaa730c3235ab15ce26a108db52b6 Mon Sep 17 00:00:00 2001 From: Jedediah Smith Date: Sun, 20 Nov 2016 07:55:13 -0500 Subject: [PATCH] Show disconnect exception messages --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index f063f80a4d..03ad94c08a 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -333,9 +333,9 @@ public void operationComplete(ChannelFuture future) throws Exception connect( def, null, true ); } else if ( dimensionChange ) { - disconnect( bungee.getTranslation( "fallback_kick", future.cause().getClass().getName() ) ); + disconnect( bungee.getTranslation( "fallback_kick", future.cause().toString() ) ); } else if(!quiet) { - sendMessage( bungee.getTranslation( "fallback_kick", future.cause().getClass().getName() ) ); + sendMessage( bungee.getTranslation( "fallback_kick", future.cause().toString() ) ); } } }