Skip to content

Commit

Permalink
chore(minimessage): correct tag builder example
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Dec 23, 2024
1 parent e140873 commit 5a5fe47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/minimessage/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ This helper can be used to efficiently apply a collection of styles with one tag
Component aTagExample() {
final String input = "Hello, <a:https://docs.advntr.dev>click me!</a> but not me!";
final MiniMessage extendedInstance = MiniMessage.builder()
.tags(b -> b.resolver(TagResolver.resolver("a", MiniMessageTest::createA)))
.editTags(b -> b.tag("a", MiniMessageTest::createA))
.build();
return extendedInstance.deserialize(input);
Expand Down

0 comments on commit 5a5fe47

Please sign in to comment.