mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Send post ChatEvent messages as MessageType.CHAT
Fixes narrator issue #5450
This commit is contained in:
parent
2c5f6c20c1
commit
1444373492
1 changed files with 3 additions and 1 deletions
|
@ -119,6 +119,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+import java.util.concurrent.ExecutionException;
|
||||
+import java.util.function.Consumer;
|
||||
+import java.util.regex.Pattern;
|
||||
+
|
||||
+import net.kyori.adventure.audience.MessageType;
|
||||
+import net.kyori.adventure.text.Component;
|
||||
+import net.kyori.adventure.text.TextReplacementConfig;
|
||||
+import net.kyori.adventure.text.event.ClickEvent;
|
||||
|
@ -273,7 +275,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ }
|
||||
+ } else {
|
||||
+ for (final Player recipient : event.recipients()) {
|
||||
+ recipient.sendMessage(player, message);
|
||||
+ recipient.sendMessage(player, message, MessageType.CHAT);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue