mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
displayname -> displayName
This commit is contained in:
1 parent
9c576e8cdb
commit
e9ca2290f6
6 files changed
+10
-8
No files matched your search
@@ -46,7 +46,7 @@ public final class BasicChatChannel implements ChatChannel {
|
||||
return this.service.basicChatFormat(
|
||||
recipient,
|
||||
sender.uuid(),
|
||||
Objects.requireNonNullElseGet(CarbonPlayer.renderName(sender), () -> Component.text(sender.username())),
|
||||
CarbonPlayer.renderName(sender),
|
||||
sender.username(),
|
||||
message
|
||||
);
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ public interface ConfigChannelMessageService {
|
||||
final SourcedAudience audience,
|
||||
@Placeholder UUID uuid,
|
||||
@Placeholder Key channel,
|
||||
@Placeholder Component displayname,
|
||||
@Placeholder Component displayName,
|
||||
@Placeholder String username,
|
||||
@Placeholder Component message
|
||||
);
|
||||
|
||||
+3
-3
@@ -30,11 +30,11 @@ public class ConfigChannelMessageSource implements IMessageSource<SourcedAudienc
|
||||
basic {
|
||||
default_format="<<username>> <message>"
|
||||
vip="[VIP] <<username>> <message>"
|
||||
admin="<white>[</white>%luckperms_prefix%<white>]</white> <displayname><white>: <message></white>"
|
||||
admin="<white>[</white>%luckperms_prefix%<white>]</white> <displayName><white>: <message></white>"
|
||||
}
|
||||
""")
|
||||
private final Map<String, String> defaults = Map.of(
|
||||
"default_format", "<displayname>: <message>",
|
||||
"default_format", "<displayName>: <message>",
|
||||
"console", "[<channel>] <username> - <uuid>: <message>"
|
||||
);
|
||||
|
||||
@@ -45,7 +45,7 @@ public class ConfigChannelMessageSource implements IMessageSource<SourcedAudienc
|
||||
Will fall back to the defaults section if no format was found for the player.
|
||||
""")
|
||||
private final Map<Locale, Map<String, String>> locales = Map.of(
|
||||
Locale.US, Map.of("default_format", "<displayname>: <message>")
|
||||
Locale.US, Map.of("default_format", "<displayName>: <message>")
|
||||
);
|
||||
|
||||
private static final String FALLBACK_FORMAT = "<red><</red><username><red>></red> <message>";
|
||||
|
||||
Reference in new issue
Block a user