From 2fe5f309ea82d8e66f36c291cee54b43013c885c Mon Sep 17 00:00:00 2001 From: Kikisito <35898087+Kikisito@users.noreply.github.com> Date: Wed, 12 Aug 2020 02:48:51 +0200 Subject: [PATCH] 1.16.2 support --- src/META-INF/MANIFEST.MF | 5 +++++ src/com/zeshanaslam/actionhealth/utils/HealthUtil.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/META-INF/MANIFEST.MF diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000..575c748 --- /dev/null +++ b/src/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Class-Path: PlaceholderAPI-2.10.9.jar MVdWPlaceholderAPI.jar LangUtils-1 + .9.jar MythicMobs-4.9.1.jar worldguardwrapper-1.1.9-SNAPSHOT.jar spigot + -1.16.2.jar + diff --git a/src/com/zeshanaslam/actionhealth/utils/HealthUtil.java b/src/com/zeshanaslam/actionhealth/utils/HealthUtil.java index fd025dd..f7a0027 100644 --- a/src/com/zeshanaslam/actionhealth/utils/HealthUtil.java +++ b/src/com/zeshanaslam/actionhealth/utils/HealthUtil.java @@ -265,7 +265,7 @@ public class HealthUtil { message = ChatColor.translateAlternateColorCodes('&', message); try { - if(plugin.configStore.mcVersion.equals("v1_16_R1")){ + if(plugin.configStore.mcVersion.equals("v1_16_R1") || plugin.configStore.mcVersion.equals("v1_16_R2")){ new PreAction(player, message); } else if (plugin.configStore.mcVersion.equals("v1_12_R1") || plugin.configStore.mcVersion.startsWith("v1_13") || plugin.configStore.mcVersion.startsWith("v1_14_") || plugin.configStore.mcVersion.startsWith("v1_15_")) { new LegacyPreAction(player, message);