2022-12-22 01:56:04 +01:00
|
|
|
From 878867854391af17739c536b7db5c0992c8fcf84 Mon Sep 17 00:00:00 2001
|
2022-11-15 18:09:04 +01:00
|
|
|
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
|
|
|
Date: Tue, 15 Nov 2022 18:07:27 +0100
|
2022-12-13 18:45:03 +01:00
|
|
|
Subject: [PATCH] Only show connection fail reason when detailed logger is
|
2022-12-13 00:02:43 +01:00
|
|
|
enabled
|
2022-11-15 18:09:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
|
2022-12-22 01:56:04 +01:00
|
|
|
index f3d60253f..021fe8398 100644
|
2022-11-15 18:09:04 +01:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
|
2022-12-13 22:11:05 +01:00
|
|
|
@@ -405,8 +405,10 @@ public final class UserConnection implements ProxiedPlayer
|
2022-12-13 00:02:43 +01:00
|
|
|
// FlameCord - Allow for toggle the logging of connection failures
|
2022-11-15 18:09:04 +01:00
|
|
|
if(FlameCord.getInstance().getFlameCordConfiguration().isLoggerDetailedConnection()) {
|
|
|
|
bungee.getLogger().log(Level.WARNING, "Error occurred processing connection for " + this.name + " " + Util.exception(cause, false)); // Waterfall
|
2022-12-13 00:02:43 +01:00
|
|
|
+ // FlameCord - Show connection fail reason
|
|
|
|
+ return groups.contains( "admin" ) ? cause.getMessage() : cause.getClass().getName();
|
2022-11-15 18:09:04 +01:00
|
|
|
}
|
2022-12-13 22:11:05 +01:00
|
|
|
- return ""; // Waterfall
|
|
|
|
+ return cause.getClass().getName(); // FlameCord
|
2022-11-15 18:09:04 +01:00
|
|
|
}
|
2022-12-13 22:11:05 +01:00
|
|
|
|
|
|
|
@Override
|
2022-11-15 18:09:04 +01:00
|
|
|
--
|
2022-12-22 01:56:04 +01:00
|
|
|
2.37.3.windows.1
|
2022-12-13 22:11:05 +01:00
|
|
|
|