You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
05ae036 PR-746: Add option to use cached map color palette
57849c1 PR-759: Add preview chat option in ServerListPingEvent
0169e65 PR-758: Add missing server properties methods from 1.19
CraftBukkit Changes:
622dbe6 SPIGOT-7068: SKULK and SKULK_VEIN BlockSpreadEvents Still do not reference the correct source (SKULK_CATALYST)
6c61b73 PR-1052: Add option to use cached map color palette
c882f38 SPIGOT-7066: Fix custom END worlds not generating DragonBattle
6866aab SPIGOT-2420: Can't set exp drops for EnderDragon death
9dcd465 PR-1067: Add preview chat option in ServerListPingEvent
36c2681 PR-1066: Add missing server properties methods from 1.19
031eaad Increase outdated build delay
8fda4b1 SPIGOT-7060: SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source
@@ -21,15 +21,16 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
3247
-
private static final int MAGIC_PLAYER_COUNT = Integer.MIN_VALUE;
3246
+
@@ -22,15 +22,16 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
3248
3247
private static final HandlerList handlers = new HandlerList();
3249
3248
private final InetAddress address;
3249
+
private final boolean shouldSendChatPreviews;
3250
3250
- private String motd;
3251
3251
+ private net.kyori.adventure.text.Component motd; // Paper
3252
3252
private final int numPlayers;
3253
3253
private int maxPlayers;
3254
3254
3255
3255
+ @Deprecated // Paper
3256
-
public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final String motd, final int numPlayers, final int maxPlayers) {
3256
+
public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final String motd, final boolean shouldSendChatPreviews, final int numPlayers, final int maxPlayers) {
3257
3257
super(true);
3258
3258
Preconditions.checkArgument(numPlayers >= 0, "Cannot have negative number of players online", numPlayers);
3259
3259
this.address = address;
3260
3260
- this.motd = motd;
3261
3261
+ this.motd = net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(motd); // Paper
+ public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int numPlayers, final int maxPlayers) {
3281
+
+ public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, boolean shouldSendChatPreviews, final int numPlayers, final int maxPlayers) {
3281
3282
+ super(true);
3282
3283
+ Preconditions.checkArgument(numPlayers >= 0, "Cannot have negative number of players online (%s)", numPlayers);
@@ -3294,11 +3296,12 @@ index b9abfdc61f76c5562de6649f8440aeaab536b3be..c4644f3fd231bff35627ff667e37ccde
3294
3296
+ * @param motd the message of the day
3295
3297
+ * @param maxPlayers the max number of players
3296
3298
+ */
3297
-
+ protected ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int maxPlayers) {
3299
+
+ protected ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, boolean shouldSendChatPreviews, final int maxPlayers) {
0 commit comments