Skip to content

Twitch

Integration with Twitch allows:

  • sending messages from Minecraft to Twitch
  • sending messages from Twitch to Minecraft
  • subscribing to Twitch stream starts

twitch messageminecraft message

Message Types

TypeExplanation
CHATGlobal chat message
AFKGlobal message from the afk action
ADVANCEMENTAchievement message
DEATHDeath message
JOINMessage when a player joins the server
QUITMessage when a player leaves the server
FROM_DISCORD_TO_MINECRAFTMessage from Discord to Minecraft
FROM_TWITCH_TO_MINECRAFTMessage from Twitch to Minecraft
FROM_TELEGRAM_TO_MINECRAFTMessage from Telegram to Minecraft
COMMAND_MEGlobal message from the /me command
COMMAND_BALLGlobal message from the /ball command
COMMAND_BANGlobal message from the /ban command
COMMAND_BROADCASTGlobal message from the /broadcast command
COMMAND_COINGlobal message from the /coin command
COMMAND_DICEGlobal message from the /dice command
COMMAND_DOGlobal message from the /do command
COMMAND_HELPERGlobal message from the /helper command
COMMAND_MUTEGlobal message from the /mute command
COMMAND_POLL_CREATE_MESSAGEGlobal message from the /poll command
COMMAND_SPYPlayer tracking for the /spy command
COMMAND_STREAMGlobal message from the /stream command
COMMAND_TRANSLATETOGlobal message from the /translateto command
COMMAND_TRYGlobal message from the /try command
COMMAND_WARNGlobal message from the /warn command
COMMAND_KICKGlobal message from the /kick command

🌍 Localization

📂 Path localizations → язык.yml → integration.twitch

⚖️ Default

yml
twitch:
  for-minecraft: "<fcolor:2><name> <fcolor:1>» <fcolor:4><message>"
  message-channel:
    CHAT: "<final_message>"
yml
twitch:
  for-minecraft: "<fcolor:2><name> <fcolor:1>» <fcolor:4><message>"
  message-channel:
    CHAT: "<final_message>"

Placeholders

You can use all the placeholders that are used in the initial Minecraft message

EXAMPLE FOR A BLOCK MESSAGE

There is a placeholder <reason>, so I can use <reason> inside Twitch messages

There are also placeholders that WILL DEFINITELY be replaced in any message

  • <final_message> the message sent to Minecraft
  • <final_clear_message> the message sent to Minecraft without Unicode emojis
  • <player> the player’s nickname who sent the message

Obviously, all placeholders from PlaceholderAPI and FlectonePulse will also work

for-minecraft

  • By default <fcolor:2><name> <fcolor:1>» <fcolor:4><message>

The format of the message that will be sent from Twitch to Minecraft

message-channel

A list of messages with the format of the final message

IF YOU WANT TO ADD ANOTHER MESSAGE:

  1. Take the name from the list of message types
  2. Insert into message-channel
yaml
message_name: "<final_message>"

⚙️ Setting

📂 Path integration.yml → twitch

⚖️ Default

yml
twitch:
  enable: false
  client-id: ""
  token: ""
  message-channel:
    FROM_TWITCH_TO_MINECRAFT: []
    CHAT: []
  follow-channel:
    faseri4ka:
      - "stream start https://twitch.tv/faseri4ka"
  destination:
    type: CHAT

enable

Enables or disables the functionality of the module

WARNING

  • Before enabling, insert the token and client ID for Twitch
  • After enabling, it is RECOMMENDED to restart the server, otherwise, the plugin might cause freezing

client-id

User identifier. You can use environment variables, for example ${VALUE}client id

token

User token for connecting. You can use environment variables, for example ${VALUE}token

message-channel

A list of message types and Twitch channel names

For example, I want to send a /ban command message from Minecraft to Twitch

  1. Copy the names of the Twitch channels to send the message to (faseri4ka)
  2. Write:
yaml
message-channel:
  COMMAND_BAN:
    - "faseri4ka"

There can be any number of channels, as long as the connected account has access to them

follow-channel

A list where the key is the channel name, and the value is a list of commands to be executed when the stream starts

For example, I want to track the stream start for faseri4ka and write stream start https://twitch.tv/faseri4ka

  1. Copy the channel name faseri4ka
  2. Write:
yaml
follow-channel:
  faseri4ka:
    - "stream start https://twitch.tv/faseri4ka"
  • Up to 10 channels can be tracked at once, as long as the connected account has access to them
  • There can be any number of commands to be executed when the stream starts

destination

Where the message will be sent

HOW TO CHANGE THE DESTINATION?

Replace the value type: here and restart FlectonePulse using the /flectonepulse reload command. Additional settings will appear automatically.

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in the chatNo
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
Configuration for ACTION_BAR
yaml
destination:
  type: ACTION_BAR
  times:
    stay: 60

times

FieldExplanation
stayTime in ticks to hold the message
Configuration for BOSS_BAR
yaml
destination:
  type: BOSS_BAR
  duration: 100
  health: 1.0
  overlay: PROGRESS
  color: BLUE
  play-boos-music: false
  create-world-fog: false
  darken-screen: false

duration

Duration of the message display

health

How full the boss bar will be

overlay

TypeExplanation
PROGRESSSingle line
NOTCHED_6Divided into 6 parts
NOTCHED_10Divided into 10 parts
NOTCHED_12Divided into 12 parts
NOTCHED_20Divided into 20 parts

color

Display color

Type
PINK
BLUE
RED
GREEN
YELLOW
PURPLE
WHITE

play-boos-music

Whether music will play with the message

create-world-fog

Whether fog will appear with the message

darken-screen

Whether the screen will darken with the message

Configuration for TITLE (or SUBTITLE)
yaml
destination:
  type: TITLE (or SUBTITLE)
  subtext: ""
  times:
    fade-in: 20
    stay: 60
    fade-out: 20

subtext

Message for the second part of the display. For example, if TITLE is selected, subtext will be displayed below it, and vice versa.

times

FieldExplanation
fade-inTime in ticks for the message to appear
stayTime in ticks to hold the message
fade-outTime in ticks for the message to disappear
Configuration for TOAST
yaml
destination:
  type: TOAST
  icon: "minecraft:diamond"
  style: TASK

icon

Achievement icon, which can be any Minecraft item (must specify the full path)

style

Achievement type (TASK regular, GOAL goal, CHALLENGE challenge)

WARNING

May cause delays, so not recommended for use

🔐 Permissions

📂 Path permission.yml → integration.twitch

⚖️ Default

yml
twitch:
  name: "flectonepulse.module.integration.twitch"
  type: TRUE

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSENot available to anyone, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to not server operators