Skip to content

Commit 3edbf36

Browse files
Fix onPlayerChat, onClientChatMessage
1 parent 6fc75d0 commit 3edbf36

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

events/Other/onClientChatMessage.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ parameters:
2121
description: The amount of blue in the color of the text.
2222
- name: messageType
2323
type: int
24-
description: The type of message as a number.
24+
description: 'The type of message as a number.
25+
26+
0: normal message
27+
28+
1: action message (/me)
29+
30+
2: team message
31+
32+
3: private message
33+
34+
4: internal message'
2535
examples:
2636
- path: examples/onClientChatMessage-1.lua
2737
description: This example doesn't output anything to chatbox if it consists only

events/Player/onPlayerChat.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ parameters:
1111
description: a string representing the message typed into the chat.
1212
- name: messageType
1313
type: int
14-
description: 'an int value representing the message type:'
14+
description: 'an int value representing the message type:
15+
16+
0: normal message
17+
18+
1: action message (/me)
19+
20+
2: team message
21+
22+
3: private message
23+
24+
4: internal message'
1525
examples:
1626
- path: examples/onPlayerChat-1.lua
1727
description: This example limits receiving of chat messages to area around the player

0 commit comments

Comments
 (0)