mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
#3258: Only show detailed connect exception to admins
This commit is contained in:
parent
34d416a4e8
commit
862bb2ac72
@ -372,7 +372,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
|
|
||||||
private String connectionFailMessage(Throwable cause)
|
private String connectionFailMessage(Throwable cause)
|
||||||
{
|
{
|
||||||
return Util.exception( cause, false );
|
return groups.contains( "admin" ) ? Util.exception( cause, false ) : cause.getClass().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user