Skip to content

Commit

Permalink
Remove unnecessary null context
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan authored Sep 17, 2023
1 parent 9864b86 commit 8682870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ AdventureMessage test1 = AdventureMessage.of("test1", slams, ctx -> net.kyori.ad

slams.load("English", JacksonParser.createJsonParser("messages.json")); // Register language and load messages from JSON file

audience.sendMessage(test0.value(null)); // Send the message to an Adventure Audience. No context is provided and therefore the default language will be used. See Context#language
audience.sendMessage(test0.value()); // Send the message to an Adventure Audience. No context is provided and therefore the default language will be used. See Context#language
audience.sendMessage(test1.value(null, net.kyori.adventure.text.minimessage.tag.resolver.Placeholder.unparsed("123", "456"))); // Send another message but add an additional minimessage placeholder
```

Expand Down

0 comments on commit 8682870

Please sign in to comment.