9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-02 13:56:38 +00:00

Fixed skill loading

This commit is contained in:
Auxilor
2021-11-07 18:41:07 +00:00
parent 24eb02246f
commit b752af0e4a
2 changed files with 2 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ public class EcoSkillsPlugin extends EcoPlugin {
@Override
protected void handleEnable() {
LegacyPlayerProfile.Companion.migrateAll();
Skills.update();
}
@Override

View File

@@ -33,7 +33,7 @@ abstract class Skill(
PersistentDataKeyType.DOUBLE,
0.0
)
lateinit var config: Config
val config: Config = SkillConfig(this.id, this.javaClass, plugin)
lateinit var name: String
lateinit var description: String
lateinit var gui: SkillGUI
@@ -50,11 +50,7 @@ abstract class Skill(
}
private fun finishLoading() {
config = SkillConfig(this.id, this.javaClass, plugin)
Skills.registerNewSkill(this)
update()
}
fun update() {