Flectone Logo FlectonePulse

/emit

Command to use any `destination` with text

command emit

The command is available by default only to server admins and is created specifically for them. It should not be given to regular players. This command can be used through the console, another plugin, or a datapack, which is convenient if you want to use tools from FlectonePulse (any placeholders and tags will also work).

To display text to all players at once, you can use all, for example /emit all CHAT hello world. Some destination types have arguments that can be modified via {}. These arguments are named exactly as they are in the configuration files.

Examples

  • /emit TheFaser ACTION_BAR{times={stay=40}} hello world
  • /emit TheFaser BOSS_BAR{color=RED} hello world
  • /emit TheFaser BRAND hello world
  • /emit TheFaser CHAT hello world
  • /emit TheFaser TITLE hello world
  • /emit TheFaser SUBTITLE hello world
  • /emit TheFaser TAB_FOOTER hello world
  • /emit TheFaser TAB_HEADER hello world
  • /emit TheFaser TEXT_SCREEN{offset_x=-0.3, offset_y=-0.2} hello world
  • /emit TheFaser TOAST{icon="minecraft:iron_ingot", style=CHALLENGE} hello world

Arguments that are omitted will use default values and do not all need to be entered. If the destination is entered incorrectly, the message will be sent to the regular chat.

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


🌍 Localization

Path localizations → language.yml → command.emit
emit:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
  format: "<fcolor:4><message>"
emit:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
  format: "<fcolor:4><message>"

null_player

Message if the entered player is not found

format

The format of the message that will be sent


⚙️ Setting

Path command.yml → emit
emit:
  enable: true
  aliases:
  - "emit"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

cooldown

Usage delay

sound

Sound playback


🔐 Permissions

Path permission.yml → command.emit
emit:
  name: "flectonepulse.module.command.emit"
  type: "OP"
  cooldown_bypass:
    name: "flectonepulse.module.command.emit.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.emit.sound"
    type: "TRUE"

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

cooldown_bypass

Permission to ignore the cooldown between uses

sound

Permission to use the sound

Last updated on

Edit on GitHub

On this page

Authors of page