forked from TuxCoding/FastLogin
Debug sending fake packet out
This commit is contained in:
@ -95,9 +95,8 @@ public class ProtocolLibListener extends PacketAdapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPacketReceiving(PacketEvent packetEvent) {
|
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(),
|
packetEvent.getPacketType(), packetEvent.getPlayer(), packetEvent.isCancelled(),
|
||||||
plugin.getCore().getAuthPluginHook(), !plugin.isServerFullyStarted(),
|
|
||||||
packetEvent.getPacket().getMeta(SOURCE_META_KEY)
|
packetEvent.getPacket().getMeta(SOURCE_META_KEY)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -290,5 +290,6 @@ public class VerifyResponseTask implements Runnable {
|
|||||||
//we don't want to handle our own packets so ignore filters
|
//we don't want to handle our own packets so ignore filters
|
||||||
startPacket.setMeta(ProtocolLibListener.SOURCE_META_KEY, plugin.getName());
|
startPacket.setMeta(ProtocolLibListener.SOURCE_META_KEY, plugin.getName());
|
||||||
ProtocolLibrary.getProtocolManager().receiveClientPacket(player, startPacket, true);
|
ProtocolLibrary.getProtocolManager().receiveClientPacket(player, startPacket, true);
|
||||||
|
plugin.getLog().info("Sending new fake login start packet to {}-{}", player, username);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user