mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-05 02:10:14 +01:00
Fix the syntax of the packet debug message.
This commit is contained in:
parent
0108c3390e
commit
5e6a6f6a95
@ -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>
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user