mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
Fixed an issue with default skills and /mmocore reload
This commit is contained in:
parent
bcf519e6f5
commit
1017bff05d
@ -130,11 +130,6 @@ public class MMOCore extends LuminePlugin {
|
||||
|
||||
if (Bukkit.getPluginManager().getPlugin("MythicMobs") != null)
|
||||
loadManager.registerLoader(new MythicMobsMMOLoader());
|
||||
|
||||
// Register MMOCore specific skills
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Ambers());
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Neptune_Gift());
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Sneaky_Picky());
|
||||
}
|
||||
|
||||
public void enable() {
|
||||
|
@ -6,6 +6,9 @@ import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.api.ConfigFile;
|
||||
import net.Indyuce.mmocore.api.util.MMOCoreUtils;
|
||||
import net.Indyuce.mmocore.skill.RegisteredSkill;
|
||||
import net.Indyuce.mmocore.skill.list.Ambers;
|
||||
import net.Indyuce.mmocore.skill.list.Neptune_Gift;
|
||||
import net.Indyuce.mmocore.skill.list.Sneaky_Picky;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@ -46,6 +49,11 @@ public class SkillManager implements MMOCoreManager {
|
||||
if (clearBefore)
|
||||
skills.clear();
|
||||
|
||||
// Register MMOCore specific skills
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Ambers());
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Neptune_Gift());
|
||||
MythicLib.plugin.getSkills().registerSkillHandler(new Sneaky_Picky());
|
||||
|
||||
// Check for default files
|
||||
File skillFolder = new File(MMOCore.plugin.getDataFolder() + "/skills");
|
||||
if (!skillFolder.exists())
|
||||
|
Loading…
Reference in New Issue
Block a user