Fix the syntax of the packet debug message.

This commit is contained in:
Kristian S. Stangeland 2012-11-05 00:05:16 +01:00
parent 0108c3390e
commit 5e6a6f6a95
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<name>ProtocolLib</name>
<version>1.5.1</version>
<version>1.5.2-SNAPSHOT</version>
<description>Provides read/write access to the Minecraft protocol.</description>
<url>http://dev.bukkit.org/server-mods/protocollib/</url>
<developers>

View File

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