mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-27 02:31:47 +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>
|
<groupId>com.comphenix.protocol</groupId>
|
||||||
<artifactId>ProtocolLib</artifactId>
|
<artifactId>ProtocolLib</artifactId>
|
||||||
<name>ProtocolLib</name>
|
<name>ProtocolLib</name>
|
||||||
<version>1.5.1</version>
|
<version>1.5.2-SNAPSHOT</version>
|
||||||
<description>Provides read/write access to the Minecraft protocol.</description>
|
<description>Provides read/write access to the Minecraft protocol.</description>
|
||||||
<url>http://dev.bukkit.org/server-mods/protocollib/</url>
|
<url>http://dev.bukkit.org/server-mods/protocollib/</url>
|
||||||
<developers>
|
<developers>
|
||||||
|
@ -377,10 +377,10 @@ class CommandPacket extends CommandBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void printInformation(PacketEvent event) {
|
private void printInformation(PacketEvent event) {
|
||||||
String verb = side.isForClient() ? "Received" : "Sent";
|
String format = side.isForClient() ?
|
||||||
String shortDescription = String.format(
|
"Received %s (%s) from %s" :
|
||||||
"%s %s (%s) from %s",
|
"Sent %s (%s) to %s";
|
||||||
verb,
|
String shortDescription = String.format(format,
|
||||||
Packets.getDeclaredName(event.getPacketID()),
|
Packets.getDeclaredName(event.getPacketID()),
|
||||||
event.getPacketID(),
|
event.getPacketID(),
|
||||||
event.getPlayer().getName()
|
event.getPlayer().getName()
|
||||||
|
Loading…
Reference in New Issue
Block a user