mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 11:36:51 +01:00
Display whether or not a packet has been cloned in the packet command.
This commit is contained in:
parent
b27922dd3d
commit
ba692d5b7d
@ -413,10 +413,12 @@ class CommandPacket extends CommandBase {
|
||||
}
|
||||
|
||||
private void printInformation(PacketEvent event) {
|
||||
String verb = side.isForClient() ? "Received" : "Sent";
|
||||
String format = side.isForClient() ?
|
||||
"Received %s (%s) from %s" :
|
||||
"Sent %s (%s) to %s";
|
||||
"%s %s (%s) from %s" :
|
||||
"%s %s (%s) to %s";
|
||||
String shortDescription = String.format(format,
|
||||
event.isCancelled() ? "Cancelled" : verb,
|
||||
Packets.getDeclaredName(event.getPacketID()),
|
||||
event.getPacketID(),
|
||||
event.getPlayer().getName()
|
||||
|
Loading…
Reference in New Issue
Block a user