Fix ignore in private message

This commit is contained in:
destro174
2021-08-23 11:56:31 +02:00
parent 3fd7bbfece
commit 250aeb5d16
4 changed files with 19 additions and 12 deletions
@@ -57,6 +57,7 @@ public class ChatHandler {
buf.writeUTF(player.getUniqueId().toString());
buf.writeUTF(player2.getUsername());
buf.writeUTF(GsonComponentSerializer.gson().serialize(component));
buf.writeUTF(player2.getUniqueId().toString());
serverConnection.sendPluginMessage(VelocityChat.getPlugin().getChannelIdentifier(), buf.toByteArray());
//redirect to the receiver
@@ -67,6 +68,7 @@ public class ChatHandler {
buf.writeUTF(player2.getUniqueId().toString());
buf.writeUTF(player.getUsername());
buf.writeUTF(GsonComponentSerializer.gson().serialize(component));
buf.writeUTF(player.getUniqueId().toString());
serverConnection.sendPluginMessage(VelocityChat.getPlugin().getChannelIdentifier(), buf.toByteArray());
}