From 43eff69a2ff15817b90a237f00ef503c12bab6e7 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Fri, 11 Dec 2020 11:31:40 -0500 Subject: [PATCH] Fix incompatibility on TacoSpigot and derivatives (#3817) The countless support tickets from users of TacoSpigot (and forks of it) have become so numerous it's not worth holding our ground on this. Taco fucked up by going against upstream revision numbers, but as they're defunct, it's not going to change now. We will not fix server implementations that do this in the future, but hopefully they have all learned their lesson to use proper versioning. The way md_5 intended. --- .../src/main/java/com/earth2me/essentials/Essentials.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java index bb694c6f0..75a65abd8 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/main/java/com/earth2me/essentials/Essentials.java @@ -285,7 +285,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials { } //Spawn Egg Providers - if (VersionUtil.getServerBukkitVersion().isLowerThanOrEqualTo(VersionUtil.v1_8_8_R01)) { + if (VersionUtil.getServerBukkitVersion().isLowerThan(VersionUtil.v1_9_R01)) { spawnEggProvider = new LegacySpawnEggProvider(); } else if (VersionUtil.getServerBukkitVersion().isLowerThanOrEqualTo(VersionUtil.v1_12_2_R01)) { spawnEggProvider = new ReflSpawnEggProvider(); @@ -294,7 +294,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials { } //Potion Meta Provider - if (VersionUtil.getServerBukkitVersion().isLowerThanOrEqualTo(VersionUtil.v1_8_8_R01)) { + if (VersionUtil.getServerBukkitVersion().isLowerThan(VersionUtil.v1_9_R01)) { potionMetaProvider = new LegacyPotionMetaProvider(); } else { potionMetaProvider = new BasePotionDataProvider();