chats
out of 3852 meta-documentation entries...Name | player chats |
Event Lines | player chats |
Triggers | when a player chats. |
Generated Examples | after player chats:
on player chats: |
Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
Switches | message:<matcher> to only process the event if the chat message matches an advanced matcher. |
Contexts | <context.message> returns the player's message as an Element.
<context.format> returns the chat message's raw format.
<context.full_text> returns the full text of the chat message (ie, the written message with the format applied to it).
<context.recipients> returns a list of all players that will receive the chat.
|
Determine | ElementTag to change the message.
"FORMAT:<ScriptTag>" to set the format script the message should use. "RAW_FORMAT:<ElementTag>" to set the format directly (without a format script). (Use with caution, avoid if possible). "RECIPIENTS:<ListTag(PlayerTag)>" to set the list of players that will receive the message. |
Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
Group | Player |
Warning(s) | Using this will forcibly sync the chat thread. |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/ChatScriptEvent.java#L28 |
Action Lines | chat |
Triggers | when a player chats to the NPC. |
Contexts | <context.message> returns the triggering message
<context.keyword> returns the keyword matched by a RegEx trigger
|
Determine | "CANCELLED" to stop the player from chatting.
ElementTag to change the message. |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/triggers/core/ChatTrigger.java#L110 |
Name | player receives message |
Event Lines | player receives message |
Triggers | when a player receives any chat message from the server. This does not normally include *player* chat, instead prefer player chats for that. |
Generated Examples | on player receives message: |
Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
Contexts | <context.message> returns an ElementTag of the message.
<context.raw_json> returns an ElementTag of the raw JSON used for the message.
<context.system_message> returns true if the message is a system message (not player chat).
|
Determine | "MESSAGE:<ElementTag>" to change the message.
"RAW_JSON:<ElementTag>" to change the JSON used for the message. |
Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
Group | Player |
Warning(s) | Using this will forcibly sync the chat thread. |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerReceivesMessageScriptEvent.java#L18 |
Name | Chat Triggers |
Description | Chat Triggers are triggered when a player chats to the NPC (usually while standing close to the NPC and facing the NPC).
They can also be triggered by the command "/denizenclickable chat hello" (where 'hello' is replaced with the chat message). This is used for clickable triggers. This option enforces all the same limitations as chatting directly, but unlike real chat, won't display the message in global chat when there's no match. This requires players have the permission "denizen.clickable". Interact scripts are allowed to define a list of possible messages a player may type and the scripts triggered in response. Within any given step, the format is then as follows:
|
Group | NPC Interact Scripts |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/triggers/core/ChatTrigger.java#L40 |
Name | Format Script Containers |
Description | Format script containers are very simple script containers used for formatting messages, usually with the 'narrate' command.
|
Group | Script Container System |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/FormatScriptContainer.java#L19 |