Module: chat.style
Overview
This module allows customization of the global chat style
.
In addition, players can use the /chat style
command to configure their personal chat style
.
Color Boxes
If you are using Styled Chat
mod, then you can disable
this module.
Because they provide the same purpose
.
◉ Advanced Chat Style features.
The chat.style
module provided by fuji
is simple.
If you want advanced chat features, you can use Styled Chat
mod.
If you want /mute
, /tempmute
commands, you can use BanHammer
mod.
TIP: While you are using Styled Chat
mod, you can still use chat.*
modules from fuji.
Most of chat.*
modules are designed to work with other chat-related mods
, especially the Styled Chat
mod.
◉ The main features of this module:
-
You can use
style tags
to define complexformat
. -
You can define the
global format
for all players. -
A player can set its
personal format
using/chat style
command. -
This module is designed to work with other
chat-related
mods. -
You can control what style tags a player can use, using permissions.
◉ You can use style tags
to write complex format
.
See the language grammar here:
◉ To set the prefix
and suffix
for a player.
You need to install the luckperms
mod, to provide the prefix
and suffix
feature.
After install it, issue /lp group default meta setprefix <yellow>[awesome]
to assign a prefix
.
To use the prefix
, use the placeholder %fuji:player_prefix%
.
◉ To set the per-player chat style:
Issue /chat style set prefix + %message% + suffix
.
◉ To allow players to use <blue>
tag:
Issue /lp group default permission set fuji.style.chat.blue
.
◉ To allow players to use <b>
tag:
Issue /lp group default permission set fuji.style.chat.b
.
◉ To allow players to use all tags:
All tags also including dangerous tags like <click>
tag which can run commands on clicked!
Issue /lp group default permission set fuji.style.chat.*
◉ Customize the chat format using placeholders.
You may want to enable placeholder
module, to provide more useful placeholders.
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:
chat.json
- File Content:
Click to see the default
content...
{
/* Per-player chat content format. */
"format": {
"player2format": {
"Steve": "<#FFC7EA>%message%"
}
}
}
- File Name:
config.json
- File Content:
Click to see the default
content...
{
/* Customize the `chat style`. */
"style": {
"sender": "<#B1B2FF>[%fuji:player_playtime%🔥 %fuji:player_mined%⛏ %fuji:player_placed%🔳 %fuji:player_killed%🗡 %fuji:player_moved%🌍]<reset> <<dark_green><click:suggest_command:'/msg %player:name% '><hover:show_text:'Time: %fuji:date%<newline><italic>Click to Message'>%player:displayname_visual%</hover></click></dark_green>> ",
"content": "%s"
}
}
Commands
-
Command Syntax:
/chat style reset
-
Document: Reset your personal chat content format.
-
Can be executed by console:
false
-
Required Level Permission:
0
-
Required String Permission:
null
-
Command Syntax:
/chat style reset others <PlayerCollection others>
-
Document: Reset your personal chat content format.
-
Can be executed by console:
false
-
Required Level Permission:
4
-
Required String Permission:
null
-
Command Syntax:
/chat style set <GreedyString format>
-
Document: Set your personal chat content format.
For example:
/chat style set prefix + %message% + suffix
-
Can be executed by console:
false
-
Required Level Permission:
0
-
Required String Permission:
null
-
Command Syntax:
/chat style set others <PlayerCollection others> <GreedyString format>
-
Document: Set your personal chat content format.
For example:
/chat style set prefix + %message% + suffix
-
Can be executed by console:
false
-
Required Level Permission:
4
-
Required String Permission:
null