Actions
How "actions" section inside it works? Well, there is a lot of different actions, below is a list of them and how to use them.
Variables
You can use these variables in every action.
{player}
- it will replace with the player's name.{name}
- it will replace with the voucher's name.
CMD_CONSOLE
Example: 'CMD_CONSOLE: give {player} 1 diamond'
- will execute command as console.
CMD_PLAYER
Example: 'CMD_CONSOLE: tell I've used voucher {name}!'
- will execute command as player.
SEND
Example: 'SEND: &aYour &bmessage'
- will send message to the player.
BROADCAST
Example: 'BROADCAST: &aYour &bmessage'
- will send message to all players online and console.
TITLE
Example: 'TITLE: &aTitle, &bSubtitle, fadeIn, stay, fadeOut'
- will send title with subtitle to the player.
Informations:
fadeIn
- how long title should appear on the screen (in ticks; 1 tick = 20ms)stay
- how long title should stay on the screen (in ticks; 1 tick = 20ms)fadeOut
- how long title should disappear from the screen (in ticks; 1 tick = 20ms)
TITLEALL
Example: 'TITLEALL: &aTitle, &bSubtitle, fadeIn, stay, fadeOut'
- will send title with subtitle to all online players.
Informations:
fadeIn
- how long title should appear on the screen (in ticks; 1 tick = 20ms)stay
- how long title should stay on the screen (in ticks; 1 tick = 20ms)fadeOut
- how long title should disappear from the screen (in ticks; 1 tick = 20ms)
SOUND
Example: 'SOUND: sound_name, pitch, volume'
- will play sound to the player.
Informations:
sound_name
- name of the sound, can be find therepitch
- pitch of the soundvolume
- volume of the sound
SOUNDALL
Example: 'SOUNDALL: sound_name, pitch, volume'
- will play sound to all online players.
Informations:
sound_name
- name of the sound, can be find therepitch
- pitch of the soundvolume
- volume of the sound
TELEPORT
Example: 'TELEPORT: world, x, y, z'
- will teleport player to given coordinates in given world.
ACTIONBAR
Example: 'ACTIONBAR: &cYour &bmessage'
- will send action bar to the player.
ACTIONBARALL
Example: 'ACTIONBARALL: &cYour &bmessage'
- will send action bar to every online player.
EFFECT
Example: 'EFFECT: effect, power, duration, hideParticles'
- this will give effect to the player.
Informations:
effect
- name of the effect, can find therepower
- power of effect, from 0 to 255duration
- duration of the effect, in secondshideParticles
- should it hide particles? Replace with true/false
EFFECTALL
Example: 'EFFECTALL: effect, power, duration, hideParticles'
- this will give effect to every online player.
Informations:
effect
- name of the effect, can find therepower
- power of effect, from 0 to 255duration
- duration of the effect, in secondshideParticles
- should it hide particles? Replace with true/false
Last updated