mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-16 23:35:22 +01:00
Only show detailed connect exception to admins
This commit is contained in:
parent
8ad569d8aa
commit
0f807dd26e
@ -1,11 +1,11 @@
|
||||
From 5e0a6aa349884b190a106b2c7609d6482ee5360f Mon Sep 17 00:00:00 2001
|
||||
From efa69c69e7b81b75ea1a602f07b3410cacbcc89c Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Tue, 15 Nov 2022 18:07:27 +0100
|
||||
Subject: [PATCH] Show connection fail reason
|
||||
Subject: [PATCH] Only show detailed connect exception to admins
|
||||
|
||||
|
||||
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 f3d60253..999f02e5 100644
|
||||
index f3d60253..713d9037 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
|
||||
@@ -406,7 +406,8 @@ public final class UserConnection implements ProxiedPlayer
|
||||
@ -14,10 +14,10 @@ index f3d60253..999f02e5 100644
|
||||
}
|
||||
- return ""; // Waterfall
|
||||
+ // FlameCord - Show connection fail reason
|
||||
+ return cause.getMessage();
|
||||
+ return groups.contains( "admin" ) ? cause.getMessage() : cause.getClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
--
|
||||
2.37.3.windows.1
|
||||
2.29.2.windows.2
|
||||
|
Loading…
Reference in New Issue
Block a user