mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
SPIGOT-6408: Narrator chat only does not work
By: md_5 <git@md-5.net>
This commit is contained in:
parent
79672394a1
commit
0352f0e143
@ -1023,8 +1023,8 @@
|
||||
+ String message = String.format(queueEvent.getFormat(), queueEvent.getPlayer().getDisplayName(), queueEvent.getMessage());
|
||||
+ PlayerConnection.this.minecraftServer.console.sendMessage(message);
|
||||
+ if (((LazyPlayerSet) queueEvent.getRecipients()).isLazy()) {
|
||||
+ for (Object player : PlayerConnection.this.minecraftServer.getPlayerList().players) {
|
||||
+ ((EntityPlayer) player).sendMessage(PlayerConnection.this.player.getUniqueID(), CraftChatMessage.fromString(message));
|
||||
+ for (EntityPlayer recipient : minecraftServer.getPlayerList().players) {
|
||||
+ recipient.getBukkitEntity().sendMessage(PlayerConnection.this.player.getUniqueID(), message);
|
||||
+ }
|
||||
+ } else {
|
||||
+ for (Player player : queueEvent.getRecipients()) {
|
||||
@ -1053,8 +1053,8 @@
|
||||
+ s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
|
||||
+ minecraftServer.console.sendMessage(s);
|
||||
+ if (((LazyPlayerSet) event.getRecipients()).isLazy()) {
|
||||
+ for (Object recipient : minecraftServer.getPlayerList().players) {
|
||||
+ ((EntityPlayer) recipient).sendMessage(PlayerConnection.this.player.getUniqueID(), CraftChatMessage.fromString(s));
|
||||
+ for (EntityPlayer recipient : minecraftServer.getPlayerList().players) {
|
||||
+ recipient.getBukkitEntity().sendMessage(PlayerConnection.this.player.getUniqueID(), s);
|
||||
+ }
|
||||
+ } else {
|
||||
+ for (Player recipient : event.getRecipients()) {
|
||||
|
Loading…
Reference in New Issue
Block a user