Usage

Action usage documentation.

Sending an action bar 💬

action bar: message; (example: action bar: "&aHello, Steve!";)

Sends an action bar message to the player.

Argument nameRequiredTypeDescription

message

yes

string

message to show (colors available)

Only available if ProtocolLib is installed.

Chatting 💬

chat: message; (example: chat: I did not write this!;)

Chats as the player, as if the player typed and sent the message.

Argument nameRequiredTypeDescription

message

yes

string

message to chat

Running a console command

console command: command; (example: console command: experience add @a 5 levels;)

Runs command from the console.

Argument nameRequiredTypeDescription

command

yes

string

command to run, without the leading /

Running a player command

player command: command; (example: player command: lobby;)

Runs command as the player.

Argument nameRequiredTypeDescription

command

yes

string

command to run, without the leading /

Sending a message 💬

message: message; (example: message: "&aHello, {name}!";)

Sends the player a message.

Argument nameRequiredTypeDescription

message

yes

string

message to send (colors available, <br> for a line break, <center> to center a line)

Sending a title 💬

title: title, subtitle, fade-in, stay, fade-out; (example: title: Title, Subtitle, 0;)

Sends the player a title.

Argument nameRequiredTypeDescription

title

yes

string

title to show (colors available)

subtitle

yes

string

subtitle to show (colors available)

fade-in

no (default = 20)

integer 0+

fade-in time in ticks

stay

no (default = 60)

integer 0+

stay time in ticks

fade-out

no (default = 20)

integer 0+

fade-out time in ticks

On 1.8 available only if ProtocolLib is installed.

Playing a sound 🔊

sound: name, volume, speed; (example: sound: ENTITY_PLAYER_LEVELUP;)

Plays the player a sound.

Argument nameRequiredTypeDescription

name

yes

sound (enum)

volume

no (default = 1)

double 0+

volume

speed

no (default = 1)

double 0.5-2

speed, 0.5 is 1/2 speed, 1 is normal and 2 is 2x speed

Playing a note 🎶

note: instrument, tone; (example: note: PIANO, random;)

Plays the player a note.

Argument nameRequiredTypeDescription

instrument

yes

instrument (enum)

tone

yes

integer 0-24

tone number, see here

Spawning a particle

particle: name, count, offset-x, offset-y, offset-z; (example: particle: EXPLOSION_LARGE;)

Spawns a particle at the player's location (visible only to the player).

Argument nameRequiredTypeDescription

name

yes

particle (enum)

count

no (default = 1)

integer 1-32

amount of particles to spawn

offset-x

no (default = 0)

double 0+

random offset from player's X location, unavailable on 1.8

offset-y

no (default = 0)

double 0+

random offset from player's Y location, unavailable on 1.8

offset-z

no (default = 0)

double 0+

random offset from player's Z location, unavailable on 1.8

Spawning a firework 🎆

firework: power, effect-type, effect-color, effect-fade-color, effect-flicker, effect-trail; (example: firework: 3, STAR, random, random, yes, yes;)

Spawns a firework at the player's location, visible to everyone online.

Argument nameRequiredTypeDescription

power

yes

integer 0-128

power of the firework (flight time)

effect-type

no (default = BALL)

firework effect type (enum)

effect-color

no (default = WHITE)

color

color of the effect

effect-fade-color

no (default = WHITE)

color

fade color of the effect

effect-flicker

no (default = false)

boolean

if the effect should flicker

effect-trail

no (default = false)

boolean

if the firework should leave a trail behind

Last updated