mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Implement FormatType as a config setting (#103)
* Implement FormatType as a config setting * Remove TODO.
This commit is contained in:
1 parent
8e91232345
commit
4a36172cdb
2 files changed
+9
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package net.draycia.carbon.api.config;
|
||||
|
||||
import net.draycia.carbon.api.adventure.FormatType;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.spongepowered.configurate.CommentedConfigurationNode;
|
||||
@@ -60,6 +61,10 @@ public final class CarbonSettings {
|
||||
@Comment("Options: NONE, REDIS, BUNGEECORD")
|
||||
private @NonNull MessagingType messagingType = MessagingType.NONE;
|
||||
|
||||
@Setting
|
||||
@Comment("Options: MOJANG, MINIMESSAGE_MARKDOWN, MINIMESSAGE, MINEDOWN")
|
||||
private @NonNull FormatType formatType = FormatType.MOJANG;
|
||||
|
||||
@Setting
|
||||
@Comment(" Options:\n" +
|
||||
" 'bungee' - Uses bungee plugin messaging, requires BungeeCord or another proxy which supports it (Velocity!)\n" +
|
||||
@@ -149,4 +154,7 @@ public final class CarbonSettings {
|
||||
return this.whisperOptions;
|
||||
}
|
||||
|
||||
public @NonNull FormatType getFormatType() {
|
||||
return formatType;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user