From f3b8db1383f41ffb3de455274e23fa9122a37609 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Wed, 27 Jul 2022 18:56:17 +0200 Subject: [PATCH] Debugging about ExperienceSources --- .../comp/mythicmobs/MythicMobsMMOLoader.java | 9 ++++++--- .../mmocore/experience/ExperienceSourceList.java | 15 --------------- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 src/main/java/net/Indyuce/mmocore/experience/ExperienceSourceList.java diff --git a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobsMMOLoader.java b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobsMMOLoader.java index 83f4aa1f..7a4b38fa 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobsMMOLoader.java +++ b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobsMMOLoader.java @@ -10,6 +10,9 @@ import net.Indyuce.mmocore.experience.source.type.ExperienceSource; import net.Indyuce.mmocore.loot.droptable.dropitem.DropItem; import org.bukkit.configuration.ConfigurationSection; +import java.util.Arrays; +import java.util.List; + public class MythicMobsMMOLoader extends MMOLoader { @Override @@ -42,12 +45,12 @@ public class MythicMobsMMOLoader extends MMOLoader { } @Override - public ExperienceSource loadExperienceSource(MMOLineConfig config, ExperienceDispenser dispenser) { + public List> loadExperienceSource(MMOLineConfig config, ExperienceDispenser dispenser) { if (config.getKey().equalsIgnoreCase("killmythicmob")) - return new KillMythicMobExperienceSource(dispenser, config); + return Arrays.asList(new KillMythicMobExperienceSource(dispenser, config)); if (config.getKey().equalsIgnoreCase("killmythicfaction")) - return new KillMythicFactionExperienceSource(dispenser, config); + return Arrays.asList(new KillMythicFactionExperienceSource(dispenser, config)); return null; } diff --git a/src/main/java/net/Indyuce/mmocore/experience/ExperienceSourceList.java b/src/main/java/net/Indyuce/mmocore/experience/ExperienceSourceList.java deleted file mode 100644 index 08211ed4..00000000 --- a/src/main/java/net/Indyuce/mmocore/experience/ExperienceSourceList.java +++ /dev/null @@ -1,15 +0,0 @@ -package net.Indyuce.mmocore.experience; - -import net.Indyuce.mmocore.experience.source.type.ExperienceSource; - -import java.util.ArrayList; -import java.util.List; - -public class ExperienceSourceList { - List experienceSourceList= new ArrayList<>(); - - public void add(ExperienceSource source) { - - } - -}