From eb51f0c83cf7c7b68634d61fbccbd4dfecad6b1e Mon Sep 17 00:00:00 2001 From: games647 Date: Thu, 28 Jul 2022 13:05:46 +0200 Subject: [PATCH] Debug sending fake packet out --- .../bukkit/listener/protocollib/ProtocolLibListener.java | 3 +-- .../bukkit/listener/protocollib/VerifyResponseTask.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java index 759a1259..fb9a3885 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java @@ -95,9 +95,8 @@ public class ProtocolLibListener extends PacketAdapter { @Override public void onPacketReceiving(PacketEvent packetEvent) { - plugin.getLog().info("New packet {} from {}; Cancellation: {}, Auth-Plugin: {}, Initialized: {}, Meta: {}", + plugin.getLog().info("New packet {} from {}; Cancellation: {}, Meta: {}", packetEvent.getPacketType(), packetEvent.getPlayer(), packetEvent.isCancelled(), - plugin.getCore().getAuthPluginHook(), !plugin.isServerFullyStarted(), packetEvent.getPacket().getMeta(SOURCE_META_KEY) ); 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 214efb95..b384047f 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 @@ -290,5 +290,6 @@ public class VerifyResponseTask implements Runnable { //we don't want to handle our own packets so ignore filters startPacket.setMeta(ProtocolLibListener.SOURCE_META_KEY, plugin.getName()); ProtocolLibrary.getProtocolManager().receiveClientPacket(player, startPacket, true); + plugin.getLog().info("Sending new fake login start packet to {}-{}", player, username); } }