mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-21 11:13:00 +01:00
new config system pt 5
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
package com.gmail.nossr50.config;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ConfigSerializable
|
||||
public class ConfigurableTest extends ConfigLoaderConfigurable {
|
||||
|
||||
public final static String relativePath = "configurabletest.yml";
|
||||
private static ConfigurableTest instance;
|
||||
|
||||
|
||||
|
||||
public ConfigurableTest() {
|
||||
super(mcMMO.p.getDataFolder(), relativePath);
|
||||
|
||||
mcMMO.p.getLogger().severe("The value of bone "+boneValue);
|
||||
}
|
||||
|
||||
public static ConfigurableTest getInstance() {
|
||||
@@ -22,6 +25,9 @@ public class ConfigurableTest extends ConfigLoaderConfigurable {
|
||||
return instance;
|
||||
}
|
||||
|
||||
@Setting(value = "woof.bone", comment = "Finally we have found the value of bone")
|
||||
double boneValue = 9.4447;
|
||||
|
||||
@Override
|
||||
public List<String> validateKeys() {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user