From 862bb2ac72fbabafb40935f9b7eb44a6faea061a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 9 Apr 2022 08:59:01 +1000 Subject: [PATCH] #3258: Only show detailed connect exception to admins --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e481d6df..c64a3e65 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -372,7 +372,7 @@ public final class UserConnection implements ProxiedPlayer private String connectionFailMessage(Throwable cause) { - return Util.exception( cause, false ); + return groups.contains( "admin" ) ? Util.exception( cause, false ) : cause.getClass().getName(); } @Override