Skip to content

Commit

Permalink
#3258: Only show detailed connect exception to admins
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Apr 8, 2022
1 parent 34d416a commit 862bb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/src/main/java/net/md_5/bungee/UserConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void operationComplete(ChannelFuture future) throws Exception

private String connectionFailMessage(Throwable cause)
{
return Util.exception( cause, false );
return groups.contains( "admin" ) ? Util.exception( cause, false ) : cause.getClass().getName();

This comment has been minimized.

Copy link
@Outfluencer

Outfluencer Apr 10, 2022

Contributor

Why not checking for an permission like bungeecord.detailedexception. for custom permission systems this is very bad

}

@Override
Expand Down

0 comments on commit 862bb2a

Please sign in to comment.