From 6413ca4d109d942d2c461916263413218b0551b4 Mon Sep 17 00:00:00 2001 From: Enginecrafter77 Date: Fri, 10 Jun 2022 11:14:10 +0200 Subject: [PATCH] fix: Reverted the invalid session log entry modification The initial debug-entry modification regarding the invalid session message was reverted. Now the logging and parameter expansion is done solely by the SLF4J library. --- .../bukkit/listener/protocollib/VerifyResponseTask.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/VerifyResponseTask.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/VerifyResponseTask.java index c333eed7..84409262 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/VerifyResponseTask.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/VerifyResponseTask.java @@ -164,9 +164,7 @@ public class VerifyResponseTask implements Runnable { receiveFakeStartPacket(realUsername); } else { //user tried to fake an authentication - disconnect("invalid-session", - String.format("GameProfile %s (%s) tried to log in with an invalid session. ServerId: %s", - session.getRequestUsername(), socketAddress, serverId)); + disconnect("invalid-session", "GameProfile {} ({}) tried to log in with an invalid session. ServerId: {}", session.getRequestUsername(), socketAddress, serverId); } } catch (IOException ioEx) { disconnect("error-kick", "Failed to connect to session server", ioEx);