Compare commits

..

No commits in common. "6184f8ff0a1b288e5b87dcee68e994e414fd4dcf" and "fc693d29a3b25fb58a77d70594feda2479005125" have entirely different histories.

13 changed files with 12 additions and 22 deletions

View File

@ -5,10 +5,7 @@ Spigot page: [Click Here](https://www.spigotmc.org/resources/action-bar-health.2
# Dependencies
**Required**
- Version v3.5.7 or greater
- Java 16 or greater
- Versions below v3.5.7
- Java 8 or greater
- Java 8 or greater
**Optional**
- For region disable option:
@ -32,7 +29,7 @@ Default config: [Click Here](https://github.com/zeshan321/ActionHealth/blob/mast
A list of the community made translations: [Click Here](https://github.com/zeshan321/ActionHealth/wiki/Community-Translations)
# Compiling
To compile ActionHealth, you need at least **Java 16** and an internet connection. Then, clone this repo, run `./gradlew clean shadowJar` and get your jar from `build/libs/ActionHealh-VERSION-all.jar`.
To compile ActionHealth, you need at least **Java 8** and an internet connection. Then, clone this repo, run `./gradlew clean shadowJar` and get your jar from `build/libs/ActionHealh-VERSION-all.jar`.
# More info
Custom styles, screenshots, command information and more can be found on the spigot page.

View File

@ -4,7 +4,7 @@ plugins {
}
group = 'com.zeshanaslam'
version = '3.5.7'
version = '3.5.6'
repositories {
mavenCentral()
@ -22,11 +22,11 @@ repositories {
}
maven {
name = 'langutils-repo'
url = 'https://raw.github.com/MascusJeoraly/LanguageUtils/mvn-repo/'
url 'https://raw.github.com/MascusJeoraly/LanguageUtils/mvn-repo/'
}
maven {
name = 'Lumine Releases'
url = 'https://mvn.lumine.io/repository/maven-public/'
url 'https://mvn.lumine.io/repository/maven-public/'
}
maven {
name = 'papi-repo'
@ -40,15 +40,16 @@ repositories {
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
compileOnly 'io.lumine.xikage:MythicMobs:4.9.1'
compileOnly 'me.clip:placeholderapi:2.10.10'
compileOnly 'org.apache.commons:commons-lang3:3.12.0'
compileOnly 'com.meowj:LangUtils:1.9'
compileOnly files('temp_libs/MVdWPlaceholderAPI.jar')
compileOnly files('temp_libs/MythicMobs-5.0.2.jar')
compileOnly 'be.maximvdw:MVdWPlaceholderAPI:3.1.1'
implementation 'org.codemc.worldguardwrapper:worldguardwrapper:1.2.0-SNAPSHOT'
}
def targetJavaVersion = 16
def targetJavaVersion = 8
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion

View File

@ -1,22 +1,14 @@
package com.zeshanaslam.actionhealth.support;
import io.lumine.mythic.bukkit.BukkitAPIHelper;
import io.lumine.mythic.bukkit.MythicBukkit;
import org.bukkit.Bukkit;
import io.lumine.xikage.mythicmobs.MythicMobs;
import org.bukkit.entity.Entity;
public class MythicMobsSupport {
private static final MythicBukkit plugin = (MythicBukkit) Bukkit.getServer().getPluginManager().getPlugin("MythicMobs");
public String getMythicName(Entity entity) {
if (plugin == null) {
return null;
if (MythicMobs.inst().getAPIHelper().isMythicMob(entity)) {
return MythicMobs.inst().getAPIHelper().getMythicMobInstance(entity).getType().getInternalName();
}
BukkitAPIHelper bucketApiHelper = plugin.getAPIHelper();
if (bucketApiHelper.isMythicMob(entity)) {
return bucketApiHelper.getMythicMobInstance(entity).getType().getInternalName();
}
return null;
}
}