mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Redo config handling
This commit is contained in:
1 parent
e95a17c025
commit
224c7723d6
2 files changed
+37
-49
No files matched your search
@@ -254,11 +254,11 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
|
||||
try {
|
||||
final ConfigLoader<YamlConfigurationLoader> loader = new ConfigLoader<>(YamlConfigurationLoader.class);
|
||||
|
||||
this.carbonSettings = CarbonSettings.loadFrom(loader.loadAndSaveNode("config.yml", true));
|
||||
this.commandSettings = CommandSettingsRegistry.loadFrom(loader.loadAndSaveNode("commands.yml", true));
|
||||
this.channelSettings = ChannelSettings.loadFrom(loader.loadAndSaveNode("channels.yml", true));
|
||||
this.translations = CarbonTranslations.loadFrom(loader.loadAndSaveNode("language.yml", true));
|
||||
this.moderationSettings = ModerationSettings.loadFrom(loader.loadAndSaveNode("moderation.yml", true));
|
||||
this.carbonSettings = CarbonSettings.loadFrom(loader.loadConfig("config.yml"));
|
||||
this.commandSettings = CommandSettingsRegistry.loadFrom(loader.loadConfig("commands.yml"));
|
||||
this.channelSettings = ChannelSettings.loadFrom(loader.loadConfig("channels.yml"));
|
||||
this.translations = CarbonTranslations.loadFrom(loader.loadConfig("language.yml"));
|
||||
this.moderationSettings = ModerationSettings.loadFrom(loader.loadConfig("moderation.yml"));
|
||||
} catch(final ConfigurateException ignored) {
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user