Module: chat.spy
Overview
This module allows spying on specified chat message types
. (Primarily private messages types.)
Color Boxes
Pick a good implementation of chat spy
in fabric platform is hard.
In vanilla Minecraft, each chat message has its message type
.
You can identify the private chat
from its message type
.
Though not all other chat mods respect this point.
You can issue /fuji debug
to enable the debug mode
.
And see how the chat.spy
module works.
Configurations
The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.
- File Name:
config.json
- File Content:
Click to see the default
content...
{
/* Only accept and spy on `messages` whose `message type` meets the `whitelist`. */
"message_type": {
"acceptors": [
"minecraft:msg_command_incoming"
]
}
/* Should not spy on `consecutive same text`. */,
"ignore_consecutive_same_text": true
/* Should we also log the `console` what is spied? */,
"log_console": false
}
- File Name:
data.json
- File Content:
Click to see the default
content...
{
/* Saved per-player options. */
"options": {}
}
Commands
-
Command Syntax:
/chat spy toggle
-
Document: Enable/disable the chat spy mode for you.
-
Can be executed by console:
false
-
Required Level Permission:
4
-
Required String Permission:
null