Flectone Logo FlectonePulse

/chatcolor

Command to change color

More details about colors

command chatcolor

How does `<fcolor:...>` work?

<fcolor:...> is a placeholder that is replaced by values from default_colors or, if the player has their own, by the player's custom colors.

The value of <fcolor:...> can be anything, but the command only allows writing colors of any format and <gradient:...:...>. There can be any number of these values; the maximum count is determined by the highest digit in default_colors.

Each digit represents a specific color. By default: <fcolor:1> is used for the primary color, <fcolor:2> is used for the primary color with emphasis (e.g., a name), <fcolor:3> for local chat messages, and <fcolor:4> for global chat messages.

<fcolor:...> has several states. By default, it is see — colors that the player will see for ALL messages ONLY for themselves, unless replaced by out — colors that ALL players will see for messages from THIS specific player (i.e., that player's personal colors).

Confused? There is an explanation in the image below, or here is an example: A player enters the command /chatcolor see red red red red. This means the player sees all messages as red on their end, but other players see messages according to their own settings. Now, suppose the player enters /chatcolor out green green green green. This means all of this player's messages will appear green to them and to all other players as well. It's important to understand that out overrides colors from see if they exist, meaning the player will also see other messages as green.

In simple terms: see is for personalizing YOUR OWN view, while out is for colors that OTHER players will also see.

fcolor

Information

You can skip colors using null so they aren't replaced. For example, /chatcolor see null null <red> <red> will only replace <fcolor:3> and <fcolor:4>, leaving the first two unchanged.

If you have the other permission, you can change the colors of other players by adding their nickname at the end of the command, for example /chatcolor see null <red> <red> <blue> TheFaser. You must specify all color slots before the nickname, but you can skip them as described above.

🌍Localization

Path localizations → language.yml → command.chatcolor
chatcolor:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
  null_type: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Incorrect type entered"
  null_color: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Incorrect colors entered"
  format: "<br><color:#98FB98>│ Your colors: <br><color:#98FB98>│ <fcolor:1>(local) <fcolor:2><player><fcolor:3>: hello world! <br><color:#98FB98>│ <fcolor:1>(global) <fcolor:2><player><fcolor:4>: hello world! <br>"
chatcolor:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
  null_type: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Тип введён неверно"
  null_color: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Цвета введены неверно"
  format: "<br><color:#98FB98>│ Твои цвета выглядят так: <br><color:#98FB98>│ <fcolor:1>(local) <fcolor:2><player><fcolor:3>: привет мир! <br><color:#98FB98>│ <fcolor:1>(global) <fcolor:2><player><fcolor:4>: привет мир! <br>"

null_player

Message if the entered player is not found

null_color

Message if the colors are entered incorrectly

null_type

Message if the type is entered incorrectly

format

The format of the message that will be sent

⚙️Setting

Path command.yml → chatcolor
chatcolor:
  enable: true
  aliases:
  - "chatcolor"
  destination:
    type: "CHAT"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

range

How far in blocks the message will be displayed

ValueExplanation
WORLD_TYPEThe message will be sent only to players who have the permission flectonepulse.world.type.dimension_name
WORLD_NAMEThe message will be sent only to players who have the permission flectonepulse.world.name.world_folder_name
PROXYThe message will be sent to all players on the server and on the Proxy
SERVERThe message will be sent to all players on the server
PLAYERThe message will be sent only to the sender
any number greater than 0, for example range: 100The message will be sent to players whose distance between them and the sender is less than this number. Players must also be in the same world as the sender

destination

Where the message will be sent

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in chatNo
TEXT_SCREENMessage anywhere on the screenYes
TITLEFull-screen messageYes
SUBTITLEFull-screen message (bottom line)Yes
TAB_HEADERMessage in TAB (top)No
TAB_FOOTERMessage in TAB (bottom)No
TOASTMessage in the top right corner (achievement)Yes

To change this, replace the value type: here and restart FlectonePulse using the /flectonepulse reload command; additional settings will appear AUTOMATICALLY

Change

Replace the value type: here

Restart FlectonePulse using the /flectonepulse reload command

Additional parameters for delay settings will appear automatically

cooldown

Usage delay

Usage

Replace false with true

Restart FlectonePulse using the /flectonepulse reload command

Additional parameters for delay settings will appear automatically

cooldown:
  enable: true
  duration: 60

Parameters

FieldTypeExplanation
enablebooleanEnables the cooldown functionality
durationlongHow many ticks must pass between uses

sound

Sound playback

Usage

Replace false with true

Restart FlectonePulse using the command /flectonepulse reload

Additional parameters for sound configuration will appear automatically

sound:
  enable: true
  volume: 1.0
  pitch: 1.0
  category: "HOSTILE"
  name: "minecraft:entity.llama.spit"

Parameters

FieldTypeExplanation
enablebooleanEnables sound playback
volumefloatSound volume from 0 to 1.0
pitchfloatSound pitch from 0 to 1.0
categoryStringCategory from MASTER, MUSIC, RECORD, WEATHER, BLOCK, HOSTILE, NEUTRAL, PLAYER, AMBIENT, VOICE
nameStringSound name, for example minecraft:entity.llama.spit

🔐Permissions

Path permission.yml → command.chatcolor
chatcolor:
  name: "flectonepulse.module.command.chatcolor"
  type: "TRUE"
  other:
    name: "flectonepulse.module.command.chatcolor.other"
    type: "OP"
  cooldown_bypass:
    name: "flectonepulse.module.command.chatcolor.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.chatcolor.sound"
    type: "TRUE"
  colors:
    SEE:
      name: "flectonepulse.module.command.chatcolor.see"
      type: "TRUE"
    OUT:
      name: "flectonepulse.module.command.chatcolor.out"
      type: "OP"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

other

Permission for use on another player

cooldown_bypass

Permission to ignore the cooldown between uses

sound

Permission to use the sound

colors

List of permissions to change specific color types: SEE or OUT

Last updated on

Edit on GitHub

On this page

Authors of page