mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Compilation fixes & color util
This commit is contained in:
1 parent
1ce21395dd
commit
16affaaa35
4 files changed
+55
-14
No files matched your search
@@ -315,13 +315,13 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
|
||||
}
|
||||
|
||||
return HoconConfigurationLoader.builder()
|
||||
.setDefaultOptions(opts -> {
|
||||
return opts.withShouldCopyDefaults(true).withSerializers(builder -> {
|
||||
.defaultOptions(opts -> {
|
||||
return opts.shouldCopyDefaults(true).serializers(builder -> {
|
||||
builder.register(Key.class, KeySerializer.INSTANCE)
|
||||
.register(Sound.class, SoundSerializer.INSTANCE);
|
||||
});
|
||||
})
|
||||
.setFile(configFile)
|
||||
.file(configFile)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public final class CarbonUtils {
|
||||
static {
|
||||
final List<String> colorList = new ArrayList<>();
|
||||
|
||||
for (final NamedTextColor color : NamedTextColor.values()) {
|
||||
for (final NamedTextColor color : NamedTextColor.NAMES.values()) {
|
||||
colorList.add(color.toString());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user