From 806784ea8ae62c9e7eae2e948cf39f2a8a576c71 Mon Sep 17 00:00:00 2001 From: JRoy <10731363+JRoy@users.noreply.github.com> Date: Sat, 13 Jun 2026 19:18:48 -0700 Subject: [PATCH] Fix 1.16 & 1.17 Compatability We started using TagResolver a while ago which wasn't in the first few versions of adventure. Fixes #6560 --- .../src/main/java/com/earth2me/essentials/Essentials.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java index 5170a694a63..fd0b41fe1d2 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java @@ -620,7 +620,9 @@ private void initAdventureFacet() { adventureFacet.close(); } - if (VersionUtil.isPaper() && VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_16_5_R01)) { + // Paper only started bundling a modern enough native Adventure (with the MiniMessage TagResolver API) + // in 1.18.2, so older versions must continue using our bundled Adventure via the Spigot facet. + if (VersionUtil.isPaper() && VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_18_2_R01)) { adventureFacet = new PaperAdventureFacet(getSettings() != null ? getSettings().getPrimaryColor() : null, getSettings() != null ? getSettings().getSecondaryColor() : null); } else { adventureFacet = new SpigotAdventureFacet(this);