diff --git a/common/src/main/java/net/draycia/carbon/common/config/MessagingSettings.java b/common/src/main/java/net/draycia/carbon/common/config/MessagingSettings.java index 56c1c5fc..ccd48327 100644 --- a/common/src/main/java/net/draycia/carbon/common/config/MessagingSettings.java +++ b/common/src/main/java/net/draycia/carbon/common/config/MessagingSettings.java @@ -32,13 +32,11 @@ public class MessagingSettings { private boolean enabled = false; - @Comment("Options: RABBITMQ, NATS, REDIS") + @Comment("One of: RABBITMQ, NATS, REDIS") private MessagingManager.@NonNull BrokerType brokerType = MessagingManager.BrokerType.NONE; - @Comment("") private String url = "127.0.0.1"; - @Comment("") private int port = 5672; // RabbitMQ 5672, NATS 4222, Redis 6379 @Comment("RabbitMQ VHost") diff --git a/common/src/main/java/net/draycia/carbon/common/config/PrimaryConfig.java b/common/src/main/java/net/draycia/carbon/common/config/PrimaryConfig.java index cecf5901..ce07ca6e 100644 --- a/common/src/main/java/net/draycia/carbon/common/config/PrimaryConfig.java +++ b/common/src/main/java/net/draycia/carbon/common/config/PrimaryConfig.java @@ -45,12 +45,15 @@ public class PrimaryConfig { @Comment(""" The service that will be used to store and load player information. - One of: JSON, MYSQL, or PSQL. - NB: If you choose MYSQL or PSQL make sure you configure the "database-settings" section of this file! + One of: JSON, MYSQL, PSQL + Note: If you choose MYSQL or PSQL make sure you configure the "database-settings" section of this file! """) private StorageType storageType = StorageType.JSON; - @Comment("") + @Comment(""" + When "storage-type" is set to MYSQL or PSQL, this section configures the database connection. + If JSON storage is used, this section can be ignored. + """) private DatabaseSettings databaseSettings = new DatabaseSettings(); @Comment("Various ClearChat command settings.")