Use the address field for verify task

This commit is contained in:
games647
2021-08-14 17:05:18 +02:00
parent f8fe3d7d71
commit 232e9ac137

View File

@@ -209,7 +209,7 @@ public class VerifyResponseTask implements Runnable {
} }
private boolean enableEncryption(SecretKey loginKey) throws IllegalArgumentException { private boolean enableEncryption(SecretKey loginKey) throws IllegalArgumentException {
plugin.getLog().info("Enabling onlinemode encryption for {}", player.getName()); plugin.getLog().info("Enabling onlinemode encryption for {}", player.getAddress());
// Initialize method reflections // Initialize method reflections
if (encryptMethod == null) { if (encryptMethod == null) {
Class<?> networkManagerClass = MinecraftReflection.getNetworkManagerClass(); Class<?> networkManagerClass = MinecraftReflection.getNetworkManagerClass();