Add channel settings

Still need to enable automatic usage of defaults for fallbacks.
This commit is contained in:
Draycia committed 2020-09-25 01:45:36 -07:00
1 parent 935f5a904b
commit 6c9810ea72
15 files changed
+555 -232

No files matched your search

@@ -1,6 +1,6 @@
package net.draycia.carbon.api.adventure;
import org.spongepowered.configurate.BasicConfigurationNode;
import org.spongepowered.configurate.CommentedConfigurationNode;
import org.spongepowered.configurate.objectmapping.ObjectMapper;
import org.spongepowered.configurate.objectmapping.ObjectMappingException;
import org.spongepowered.configurate.objectmapping.Setting;
@@ -19,11 +19,11 @@ public class CarbonTranslations {
}
}
public static CarbonTranslations loadFrom(final BasicConfigurationNode node) throws ObjectMappingException {
public static CarbonTranslations loadFrom(final CommentedConfigurationNode node) throws ObjectMappingException {
return MAPPER.bindToNew().populate(node);
}
public void saveTo(final BasicConfigurationNode node) throws ObjectMappingException {
public void saveTo(final CommentedConfigurationNode node) throws ObjectMappingException {
MAPPER.bind(this).serialize(node);
}