Debug sending fake packet out

This commit is contained in:
games647
2022-07-28 13:05:46 +02:00
parent 5bdf2f4c9e
commit eb51f0c83c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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