Skip to content

Commit 8476ecf

Browse files
committed
Update adventure chat arguments page
1 parent 50b2d67 commit 8476ecf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/en/create-commands/arguments/types/chat/adventure-chat-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ We can construct a book using the Adventure API's `Book.book(Component, Componen
7474

7575
## Adventure chat argument
7676

77-
The `ChatArgument` represents infinitely long strings similar to the `GreedyStringArgument` and allows entity selectors such as `@e`, `@p` and so on. The `ChatArgument` returns a `Component`, similar to the `ChatComponentArgument`.
77+
The `ChatArgument` represents infinitely long strings similar to the `GreedyStringArgument` and allows entity selectors such as `@e`, `@p` and so on. The `ChatArgument` returns a `SignedMessage`.
7878

7979
::::tip Example – Sending personalized messages to players
8080

@@ -84,7 +84,7 @@ We want to create a personalized message broadcasted to all users using a chat c
8484
/pbroadcast <message>
8585
```
8686

87-
To broadcast an Adventure `Component` to all players on the server, we have to use Paper's `broadcast(Component, String)` method. This method requires a permission node which all players must have to receive the broadcasted message. By default, Bukkit-based servers (Spigot and Paper) use the `bukkit.broadcast.user` permission, which is described [here](https://bukkit.fandom.com/wiki/CraftBukkit_Commands#Additional_Permissions):
87+
To broadcast an Adventure `Component` to all players on the server, we have to use Paper's `sendMessage(SignedMessage, Bound)` method.
8888

8989
:::tabs
9090
===Java

docs/en/create-commands/arguments/types/chat/chat-arguments.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ The CommandAPI provides a number of ways to interact with chat formatting in Min
1414
- **Chat**: Text which is said in chat. This also includes entity selectors such as `@a` and `@r`
1515
- **ChatComponent**: Minecraft's [Raw JSON text format](https://minecraft.wiki/w/Raw_JSON_text_format)
1616

17-
The CommandAPI implements **ChatColor**, **Chat** and **ChatComponent** in two separate ways: [Spigot-compatible](./spigot-chat-arguments) and [Adventure-compatible](./adventure-chat-arguments). The differences between these and how to use them are described in their own relevant pages.
18-
19-
The CommandAPI also supports Minecraft 1.19's chat preview feature. To use Minecraft 1.19's chat preview feature, information on that can be found in [Chat preview](./chat-preview).
17+
The CommandAPI implements **ChatColor**, **Chat** and **ChatComponent** in two separate ways: [Spigot-compatible](./spigot-chat-arguments) and [Adventure-compatible](./adventure-chat-arguments). The differences between these and how to use them are described in their own relevant pages.

0 commit comments

Comments
 (0)