1.16.2 support

This commit is contained in:
Kikisito 2020-08-12 02:48:51 +02:00
parent 9da7fa0972
commit 2fe5f309ea
2 changed files with 6 additions and 1 deletions

5
src/META-INF/MANIFEST.MF Normal file
View File

@ -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

View File

@ -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);