From be977541680a62a9091fefea23a0f7b9ebc186c7 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Thu, 29 Aug 2019 14:13:24 +0200 Subject: [PATCH] removed comment, added MMOCore stats --- src/main/java/net/Indyuce/mmoitems/api/AttackResult.java | 1 - .../java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java | 4 ++-- .../net/Indyuce/mmoitems/comp/mmocore/MMOCoreMMOLoader.java | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java b/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java index 268cf07a..76625eae 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java +++ b/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java @@ -55,7 +55,6 @@ public class AttackResult { return damage; } - // not used in MMOItems public boolean isDamageModified() { return initial != damage; } diff --git a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java index 305f0b75..b15e2531 100644 --- a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java +++ b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java @@ -33,8 +33,8 @@ public class MMOCoreHook implements RPGHandler, Listener { */ MMOCore.plugin.damage.registerHandler(new MMOCoreDamageHandler()); - MMOItems.plugin.getStats().register(StatType.COOLDOWN_REDUCTION.name(), new DoubleStat(new ItemStack(Material.BOOK), "Skill Cooldown Reduction", new String[] { "(%) Reduces cooldowns of MMOCore skills." }, "skill-cooldown-reduction")); - MMOItems.plugin.getStats().register(StatType.ADDITIONAL_EXPERIENCE.name(), new DoubleStat(new ItemStack(Material.EXPERIENCE_BOTTLE), "Additional Experience", new String[] { "Additional % MMOCore main class experience." }, "additional-experience")); + MMOItems.plugin.getStats().register("COOLDOWN_REDUCTION", new DoubleStat(new ItemStack(Material.BOOK), "Skill Cooldown Reduction", new String[] { "(%) Reduces cooldowns of MMOCore skills." }, "skill-cooldown-reduction")); + MMOItems.plugin.getStats().register("ADDITIONAL_EXPERIENCE", new DoubleStat(new ItemStack(Material.EXPERIENCE_BOTTLE), "Additional Experience", new String[] { "Additional % MMOCore main class experience." }, "additional-experience")); for (DamageType type : DamageType.values()) MMOItems.plugin.getStats().register(type.name() + "_DAMAGE", new DoubleStat(new ItemStack(Material.GRAY_DYE), MMOUtils.caseOnWords(type.name().toLowerCase().replace("_", " ")) + " Damage (MMOCore)", new String[] { "Additional % MMOCore main class experience." }, "additional-experience")); } diff --git a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreMMOLoader.java b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreMMOLoader.java index 71c85a1e..fe87f9f5 100644 --- a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreMMOLoader.java +++ b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreMMOLoader.java @@ -31,8 +31,7 @@ public class MMOCoreMMOLoader implements MMOLoader { * register extra conditions for MMOItems crafting. */ MMOItems.plugin.getCrafting().registerCondition(new ProfessionCondition()); - MMOItems.plugin.getCrafting().registerTrigger(new ExperienceCraftingTrigger()); - } + MMOItems.plugin.getCrafting().registerTrigger(new ExperienceCraftingTrigger());} @Override public Condition loadCondition(MMOLineConfig config) {