Actions
This section is used for dialogues and actions. You can use PlaceholderAPI variables on actions.
Action | Description | Example |
console_command | Executes a command from the console. |
|
player_command | Executes a command from the player. |
|
player_command_as_op | Executes a command from the player as OP. (Not recommended) |
|
teleport | Teleports the player. Use this format: "teleport: world;x;y;z;yaw;pitch" |
|
give_potion_effect | Gives a potion effect to the player. Use this format: "give_potion_effect: effect;duration_in_ticks;level;particles" You can find a list of potion effects here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html |
|
remove_potion_effect | Removes a potion effect from the player. |
|
playsound | Plays a sound to the player. Use this format: "playsound: sound;volume;pitch" You can find a list of sounds here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html Use this list instead when using 1.8: https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html |
|
playsound_resource_pack | Plays a resource pack sound to the player. Uses the same format of the playsound action. |
|
title | Sends a title and subtitle message to the player. Use this format: "title: fadeIn;stay;fadeOut;title;subtitle" fadeIn, stay and fadeOut must be in ticks, 20ticks = 1second If you want just a title, or just subtitle write "none" |
|
actionbar | Sends an actionbar message to the player. Use this format: "actionbar: message;duration" (The duration must be in ticks, 20ticks = 1second) |
|
remove_item | Removes X amount of items from the player inventory. You can check the format HERE. |
|
firework | Spawns a firework from the player location. You can check the format HERE. |
|
wait | Waits X amount of seconds before executing more actions. |
|
wait_ticks | Waits X amount of ticks before executing more actions. (20ticks = 1 second) |
|
influence | Sets, adds or removes influence from the current conversation entity for the player. |
|
Remove Item
This is the format for the remove_item action:
remove_item: <type>;<amount>;datavalue: <datavalue>;name: <name>;lorecontains: <lore_line>
Datavalue, name and lorecontains attributes are OPTIONAL. Don't use color formatting.
You can find a list of valid types of items here: For latest versions: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html For 1.8: https://helpch.at/docs/1.8/org/bukkit/Material.html
You can also use the CheckItem expansion of PlaceholderAPI (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#checkitem) to remove items, following this format:
remove_item: %checkitem_remove_,,<...>%
Firework
This is the format for the firework action:
firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> power:<power>
The fade property is optional, the rest are necessary. You can add more than 2 colors.
Last updated