mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Remove default per-locale channel formats
This commit is contained in:
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
|
||||
|
||||
+4
-6
@@ -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>";
|
||||
|
||||
|
||||
Reference in new issue
Block a user