Debugging about ExperienceSources

This commit is contained in:
Ka0rX 2022-07-27 18:56:17 +02:00
parent 13eec448e4
commit f3b8db1383
2 changed files with 6 additions and 18 deletions

View File

@ -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<ExperienceSource<?>> 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;
}

View File

@ -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<ExperienceSource> experienceSourceList= new ArrayList<>();
public void add(ExperienceSource source) {
}
}