mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
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 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;
|
||||
}
|
||||
|
@ -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