From 5e6a6f6a9596d89643744a874a493b89a82af530 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Mon, 5 Nov 2012 00:05:16 +0100 Subject: [PATCH] Fix the syntax of the packet debug message. --- ProtocolLib/dependency-reduced-pom.xml | 2 +- .../main/java/com/comphenix/protocol/CommandPacket.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ProtocolLib/dependency-reduced-pom.xml b/ProtocolLib/dependency-reduced-pom.xml index dc9bd600..2cab33a2 100644 --- a/ProtocolLib/dependency-reduced-pom.xml +++ b/ProtocolLib/dependency-reduced-pom.xml @@ -4,7 +4,7 @@ com.comphenix.protocol ProtocolLib ProtocolLib - 1.5.1 + 1.5.2-SNAPSHOT Provides read/write access to the Minecraft protocol. http://dev.bukkit.org/server-mods/protocollib/ diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java index 159bbb75..8bfac14d 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java @@ -377,10 +377,10 @@ class CommandPacket extends CommandBase { } private void printInformation(PacketEvent event) { - String verb = side.isForClient() ? "Received" : "Sent"; - String shortDescription = String.format( - "%s %s (%s) from %s", - verb, + String format = side.isForClient() ? + "Received %s (%s) from %s" : + "Sent %s (%s) to %s"; + String shortDescription = String.format(format, Packets.getDeclaredName(event.getPacketID()), event.getPacketID(), event.getPlayer().getName()