Send post ChatEvent messages as MessageType.CHAT

Fixes narrator issue #5450
This commit is contained in:
Professor Bloodstone 2021-04-04 22:43:11 +02:00
parent 2c5f6c20c1
commit 1444373492

View file

@ -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);
+ }
+ }
+ }