Element List - ryandw11/CommandMaker GitHub Wiki

This contains the optional elements for commands.

executecommands

Format:

executecommands:
    - 'command'

Information:

Accepts Arguments: true
Required: false
Executes as player.

kill

kill: '{arg1}'

Requires one argument.
Notice: Not setting the arguments correctly in the required section could cause internal errors.

message

message: '&6This is a message.'

Requires a string.
The message is able to use arguments.
The message can contain color codes.
The message can contain {player}.
The message can contain PlaceHolders.
Notice: when using arguments, not setting them correctly can cause internal errors

messages

messages:
    - '&6This is a message.'
    - '&5This is another message.'

Sends multiple messages to the player.
Like message it is able to use color codes, the {player} placeholder, arguments, and placeholders from PlaceHolderAPI.

particle (TODO)

particle: 'FLAME'

Spawns a particle near the player.
The name of the particles can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html

sound (TODO)

sound: 'BLOCK_NOTE_BLOCK_FLUTE'

Plays a sound to the player.
The list of valid sounds can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html

teleport (TODO)

teleport:
    target: '{player}'
    x: 0
    y: 0
    z: 0
    pitch: 0
    yaw: 0

Teleports the target to the desired location.
The target accepts {player} and arguments.
The pitch and yaw values are optional. (They control the direction the player is looking)