forked from Upstream/mmocore
Debugging about ExperienceSources
This commit is contained in:
parent
13eec448e4
commit
f3b8db1383
@ -10,6 +10,9 @@ import net.Indyuce.mmocore.experience.source.type.ExperienceSource;
|
|||||||
import net.Indyuce.mmocore.loot.droptable.dropitem.DropItem;
|
import net.Indyuce.mmocore.loot.droptable.dropitem.DropItem;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class MythicMobsMMOLoader extends MMOLoader {
|
public class MythicMobsMMOLoader extends MMOLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -42,12 +45,12 @@ public class MythicMobsMMOLoader extends MMOLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExperienceSource<?> loadExperienceSource(MMOLineConfig config, ExperienceDispenser dispenser) {
|
public List<ExperienceSource<?>> loadExperienceSource(MMOLineConfig config, ExperienceDispenser dispenser) {
|
||||||
|
|
||||||
if (config.getKey().equalsIgnoreCase("killmythicmob"))
|
if (config.getKey().equalsIgnoreCase("killmythicmob"))
|
||||||
return new KillMythicMobExperienceSource(dispenser, config);
|
return Arrays.asList(new KillMythicMobExperienceSource(dispenser, config));
|
||||||
if (config.getKey().equalsIgnoreCase("killmythicfaction"))
|
if (config.getKey().equalsIgnoreCase("killmythicfaction"))
|
||||||
return new KillMythicFactionExperienceSource(dispenser, config);
|
return Arrays.asList(new KillMythicFactionExperienceSource(dispenser, config));
|
||||||
|
|
||||||
return null;
|
return 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<ExperienceSource> experienceSourceList= new ArrayList<>();
|
|
||||||
|
|
||||||
public void add(ExperienceSource source) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user