Extract username for protocollib packets

This commit is contained in:
games647
2024-07-08 12:29:49 +02:00
parent 1a56741112
commit 51efb9d62d

View File

@ -114,7 +114,7 @@ public class ProtocolLibListener extends PacketAdapter {
Player sender = packetEvent.getPlayer();
PacketType packetType = getOverriddenType(packetEvent.getPacketType());
plugin.getLog().info("New packet {} from {}", packetType, sender);
plugin.getLog().info("New incoming packet {} from {}", packetType, sender.getName());
try {
if (packetType == START) {
if (plugin.getFloodgateService() != null) {