mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-04-15 20:15:48 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9b61d073d4
@ -0,0 +1,32 @@
|
||||
package com.willfp.ecoskills.classes;
|
||||
|
||||
import com.willfp.ecoskills.config.ClassConfig;
|
||||
import lombok.Getter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public abstract class SkillClass {
|
||||
/**
|
||||
* The name of the class.
|
||||
*/
|
||||
@Getter
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* The config for the skill class.
|
||||
*/
|
||||
@Getter
|
||||
private final ClassConfig config;
|
||||
|
||||
protected SkillClass(@NotNull final String name) {
|
||||
this.name = name;
|
||||
this.config = new ClassConfig(name, this.getClass());
|
||||
|
||||
this.update();
|
||||
|
||||
SkillClasses.addNewSkillClass(this);
|
||||
}
|
||||
|
||||
public void update() {
|
||||
config.update();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user