mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix enums in CarbonSettings
This commit is contained in:
1 parent
50dde2a249
commit
8ec8a5832f
3 files changed
+2
-7
No files matched your search
@@ -8,6 +8,7 @@ import org.spongepowered.configurate.objectmapping.ObjectMappingException;
|
||||
import org.spongepowered.configurate.objectmapping.Setting;
|
||||
import org.spongepowered.configurate.serialize.ConfigSerializable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -43,7 +44,7 @@ public class CarbonSettings {
|
||||
private boolean showTips = true;
|
||||
|
||||
@Setting(comment = "")
|
||||
private @NonNull List<@NonNull ChannelSettings> channelSettings; // TODO: unfuck this, it's loaded from file?
|
||||
private @NonNull List<@NonNull ChannelSettings> channelSettings = new ArrayList<>(); // TODO: unfuck this, it's loaded from file?
|
||||
|
||||
@Setting(comment = "Options: JSON, MYSQL")
|
||||
private @Nullable StorageType storageType = StorageType.JSON;
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package net.draycia.carbon.api.config;
|
||||
|
||||
import org.spongepowered.configurate.serialize.ConfigSerializable;
|
||||
|
||||
@ConfigSerializable
|
||||
public enum MessagingType {
|
||||
NONE,
|
||||
REDIS,
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package net.draycia.carbon.api.config;
|
||||
|
||||
import org.spongepowered.configurate.serialize.ConfigSerializable;
|
||||
|
||||
@ConfigSerializable
|
||||
public enum StorageType {
|
||||
MYSQL,
|
||||
JSON
|
||||
|
||||
Reference in new issue
Block a user