fix compile

This commit is contained in:
Mariell Hoversholm 2021-03-17 10:47:08 +01:00
parent 61ccf4bd87
commit 2d21a9f100

View file

@ -270,11 +270,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ if (((LazyPlayerSet) event.recipients()).isLazy()) { + if (((LazyPlayerSet) event.recipients()).isLazy()) {
+ final IChatBaseComponent vanilla = PaperAdventure.asVanilla(message); + 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()); + recipient.sendMessage(vanilla, this.player.getUniqueID());
+ } + }
+ } else { + } else {
+ for(final Player recipient : event.recipients()) { + for (final Player recipient : event.recipients()) {
+ recipient.sendMessage(player, message); + recipient.sendMessage(player, message);
+ } + }
+ } + }
@ -321,6 +321,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ private static boolean anyListeners(final HandlerList handlers) { + private static boolean anyListeners(final HandlerList handlers) {
+ return handlers.getRegisteredListeners().length > 0; + 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 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 new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000