Fix the syntax of the packet debug message.
Dieser Commit ist enthalten in:
Ursprung
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()
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren