diff --git a/README.md b/README.md index a1bada21..e03ceadf 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -![eclipse_SEyunr6cEZ](/uploads/4537bd2ada7d70653c7e26a0efc88565/eclipse_SEyunr6cEZ.png) \ No newline at end of file +Private repository for MMOCore. + +Issues: https://git.lumine.io/mythiccraft/mmocore/-/issues +Wiki: https://git.lumine.io/mythiccraft/mmocore/-/wikis/home diff --git a/lib/MMOItems.jar b/lib/MMOItems.jar index 172cc4e4..ce98bbb7 100644 Binary files a/lib/MMOItems.jar and b/lib/MMOItems.jar differ diff --git a/lib/MMOLib.jar b/lib/MMOLib.jar index a0cbd6c0..67da4a11 100644 Binary files a/lib/MMOLib.jar and b/lib/MMOLib.jar differ diff --git a/pom.xml b/pom.xml index 160176a7..089c2902 100644 --- a/pom.xml +++ b/pom.xml @@ -1,166 +1,172 @@ - 4.0.0 - net.Indyuce - MMOCore - 1.4.5 - MMOCore - Offer your players a brand new RPG experience. + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + net.Indyuce + MMOCore + 1.4.5 + MMOCore + Offer your players a brand new RPG experience. - - SNAPSHOT - false - false - UTF-8 - UTF-8 - + + SNAPSHOT + false + false + UTF-8 + UTF-8 + - - - nexus - Lumine Releases - http://mvn.lumine.io/repository/maven-releases/ - - - nexus - Lumine Snapshots - http://mvn.lumine.io/repository/maven-snapshots/ - - + + + nexus + Lumine Releases + http://mvn.lumine.io/repository/maven-releases/ + + + nexus + Lumine Snapshots + http://mvn.lumine.io/repository/maven-snapshots/ + + - - ${project.name}-${project.version} - - - true - ${basedir}/src/main/resources/ - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - junit:junit - UTF-8 - UTF-8 - UTF-8 - -ea -Dfile.encoding=UTF-8 - - - - - - - jitpack.io - https://jitpack.io - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - sk89q-repo - https://maven.enginehub.org/repo/ - - - + + ${project.name}-${project.version} + + + true + ${basedir}/src/main/resources/ + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + junit:junit + UTF-8 + UTF-8 + UTF-8 + -ea -Dfile.encoding=UTF-8 + + + + + + + jitpack.io + https://jitpack.io + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + sk89q-repo + https://maven.enginehub.org/repo/ + + + - - net.Indyuce - mmoitems - 5.1.2 - system - ${basedir}/lib/MMOItems.jar - - - net.Indyuce - MMOLib - 1.0 - system - ${basedir}/lib/MMOLib.jar - + + + net.Indyuce + mmoitems + 6.1.2 + system + ${basedir}/lib/MMOItems.jar + + + net.Indyuce + MMOLib + 1.3 + system + ${basedir}/lib/MMOLib.jar + - - org.spigotmc - spigot-api - 1.14.4 - system - ${basedir}/lib/spigot.jar - - - com.bekvon.bukkit - Residence - 4.8.7.2 - system - ${basedir}/lib/Residence.jar - - - com.Zrips - CMI - 8.6.5.0 - system - ${basedir}/lib/CMI.jar - - - com.sainttx.holograms - holograms - 2.9.1 - system - ${basedir}/lib/Holograms.jar - - - com.gmail.filoghost - HolographicDisplays - 6.9.1 - system - ${basedir}/lib/HolographicDisplays.jar - - - io.lumine.xikage - MythicMobs - 4.8.0 - system - ${basedir}/lib/MythicMobs.jar - - - com.github.MilkBowl - VaultAPI - 1.7 - provided - - - com.sk89q.worldguard - worldguard-bukkit - 7.0.2-SNAPSHOT - provided - - - net.citizensnpcs - citizens - 2.0.25-SNAPSHOT - system - ${basedir}/lib/Citizens.jar - - - mysql - mysql-connector-java - 5.1.41 - - - me.clip - placeholderapi - 2.10.7 - system - ${basedir}/lib/PlaceholderAPI.jar - - - org.jetbrains - annotations - 19.0.0 - - + + + org.spigotmc + spigot-api + 1.12-R1-1.16-R2 + system + ${basedir}/lib/spigot.jar + + + + + org.jetbrains + annotations + 19.0.0 + + + mysql + mysql-connector-java + 5.1.41 + + + + + com.bekvon.bukkit + Residence + 4.8.7.2 + system + ${basedir}/lib/Residence.jar + + + com.Zrips + CMI + 8.6.5.0 + system + ${basedir}/lib/CMI.jar + + + com.sainttx.holograms + holograms + 2.9.1 + system + ${basedir}/lib/Holograms.jar + + + com.gmail.filoghost + HolographicDisplays + 6.9.1 + system + ${basedir}/lib/HolographicDisplays.jar + + + io.lumine.xikage + MythicMobs + 4.8.0 + system + ${basedir}/lib/MythicMobs.jar + + + com.github.MilkBowl + VaultAPI + 1.7 + provided + + + com.sk89q.worldguard + worldguard-bukkit + 7.0.2-SNAPSHOT + provided + + + net.citizensnpcs + citizens + 2.0.25-SNAPSHOT + system + ${basedir}/lib/Citizens.jar + + + me.clip + placeholderapi + 2.10.7 + system + ${basedir}/lib/PlaceholderAPI.jar + + \ No newline at end of file diff --git a/src/main/java/net/Indyuce/mmocore/listener/PartyListener.java b/src/main/java/net/Indyuce/mmocore/listener/PartyListener.java index d3f379c5..057353f6 100644 --- a/src/main/java/net/Indyuce/mmocore/listener/PartyListener.java +++ b/src/main/java/net/Indyuce/mmocore/listener/PartyListener.java @@ -1,6 +1,7 @@ package net.Indyuce.mmocore.listener; import org.bukkit.Bukkit; +import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; @@ -47,7 +48,10 @@ public class PartyListener implements Listener { */ @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) public void b(PlayerAttackEvent event) { - if (event.getEntity() instanceof Player) { + LivingEntity entity = event.getEntity(); + if (entity instanceof Player) { + if (entity.hasMetadata("NPC")) + return; PlayerData targetData = PlayerData.get((Player) event.getEntity()); if (targetData.hasParty() && targetData.getParty().getMembers().has(event.getData().getMMOCore())) event.setCancelled(true);