diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index d389f38734..84d29a978e 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -270,11 +270,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + if (((LazyPlayerSet) event.recipients()).isLazy()) { + final IChatBaseComponent vanilla = PaperAdventure.asVanilla(message); -+ for(final EntityPlayer recipient : this.server.getPlayerList().players) { ++ for (final EntityPlayer recipient : this.server.getPlayerList().players) { + recipient.sendMessage(vanilla, this.player.getUniqueID()); + } + } else { -+ for(final Player recipient : event.recipients()) { ++ for (final Player recipient : event.recipients()) { + recipient.sendMessage(player, message); + } + } @@ -321,6 +321,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + private static boolean anyListeners(final HandlerList handlers) { + return handlers.getRegisteredListeners().length > 0; ++ } ++} diff --git a/src/main/java/io/papermc/paper/adventure/DisplayNames.java b/src/main/java/io/papermc/paper/adventure/DisplayNames.java new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000