Remove default per-locale channel formats

This commit is contained in:
Jason Penilla committed 2023-11-10 20:26:12 -07:00
1 parent 4047bb4fc8
commit c35acc38fc
5 files changed
+4 -22

No files matched your search

@@ -22,7 +22,6 @@ package net.draycia.carbon.common.channels;
import com.google.inject.Inject;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;
@@ -60,9 +59,6 @@ public class PartyChatChannel extends ConfigChatChannel {
"default_format", "(party: <party_name>) <display_name>: <message>",
"console", "[party: <party_name>] <username>: <message>"
);
this.messageSource.locales = Map.of(
Locale.US, Map.of("default_format", "(party: <party_name>) <display_name>: <message>")
);
}
@Override
@@ -63,15 +63,13 @@ public class ConfigChannelMessageSource implements IMessageSource<SourcedAudienc
"discord", "<message>"
);
// TODO: Move the default to the advanced config?
@Comment("""
Per-Language chat formats.
You can safely delete this section if you don't want to use this feature.
Will fall back to the defaults section if no format was found for the player.
You can safely leave this section empty if you don't want to use this feature.
Each locale section can be configured in the same way as the above 'basic' section.
Will fall back to the 'basic' section if no format was found for the player's locale.
""")
public Map<Locale, Map<String, String>> locales = Map.of(
Locale.US, Map.of("default_format", "<display_name>: <message>")
);
public Map<Locale, Map<String, String>> locales = Map.of(Locale.getDefault(), Map.of());
private static final String FALLBACK_FORMAT = "<red><</red><username><red>></red> <message>";