mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Add channel settings
Still need to enable automatic usage of defaults for fallbacks.
This commit is contained in:
1 parent
935f5a904b
commit
6c9810ea72
15 files changed
+555
-232
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user