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.
This commit is contained in:
Enginecrafter77
2022-06-10 11:14:10 +02:00
parent 5f494e5a04
commit 6413ca4d10

View File

@ -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);