mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Make message placeholders selfClosingInserting (#298)
This commit is contained in:
1 parent
e062b4deb8
commit
c651f7b294
3 files changed
+5
-5
No files matched your search
@@ -125,8 +125,8 @@ public final class HelpCommand extends CarbonCommand {
|
||||
// Total hack but works for now
|
||||
if (args.length == 2) {
|
||||
tagResolver
|
||||
.tag("page", Tag.inserting(text(args[0])))
|
||||
.tag("max_pages", Tag.inserting(text(args[1]))
|
||||
.tag("page", Tag.selfClosingInserting(text(args[0])))
|
||||
.tag("max_pages", Tag.selfClosingInserting(text(args[1]))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ public class ClearChatSettings {
|
||||
public Component broadcast(final Component displayName, final String username) {
|
||||
return MiniMessage.miniMessage().deserialize(this.broadcast,
|
||||
TagResolver.builder()
|
||||
.tag("display_name", Tag.inserting(displayName))
|
||||
.tag("username", Tag.inserting(Component.text(username)))
|
||||
.tag("display_name", Tag.selfClosingInserting(displayName))
|
||||
.tag("username", Tag.selfClosingInserting(Component.text(username)))
|
||||
.build());
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class ComponentPlaceholderResolver<R> implements IPlaceholderResolver<R,
|
||||
final Method method,
|
||||
final @Nullable Object[] parameters
|
||||
) {
|
||||
return Map.of(placeholderName, Either.left(ConclusionValue.conclusionValue(Tag.inserting(value))));
|
||||
return Map.of(placeholderName, Either.left(ConclusionValue.conclusionValue(Tag.selfClosingInserting(value))));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user