SPIGOT-6206: Use correct sender UUID for chat messages

By: Mariell Hoversholm <proximyst@proximyst.com>
This commit is contained in:
CraftBukkit/Spigot
2020-11-03 19:02:28 +11:00
parent b180ac1eb9
commit 8a6781edb0
2 changed files with 6 additions and 6 deletions

View File

@@ -715,9 +715,9 @@
}
+ // CraftBukkit start - Support multi-line messages
+ public void sendMessage(IChatBaseComponent[] ichatbasecomponent) {
+ public void sendMessage(UUID uuid, IChatBaseComponent[] ichatbasecomponent) {
+ for (IChatBaseComponent component : ichatbasecomponent) {
+ this.sendMessage(component, SystemUtils.b);
+ this.sendMessage(component, (uuid == null) ? SystemUtils.b : uuid);
+ }
+ }
+ // CraftBukkit end