Actions
This wiki provides documentation on the available actions that can be configured in the TravelingMerchant plugin for purposes such as sending messages, playing sounds, executing commands, and more.
๐ฆ Example Configuration
actions:
- broadcast:
- '&fPlayer &a%player% &fperformed action'
- message:
- '&a&nCongratulations you performed an action'
Now let's take a look at what all actions this plugin offerswht a offers
๐ข broadcast
broadcast
Sends a message to all players on the server. Support Color
- broadcast:
- '<message>'
๐ฌ message
message
Sends a private message to the player who triggered the action. Support Color
- message:
- '<message>'
๐ action-bar
action-bar
Displays a short action bar message above the hotbar for the player. Support Color
- action-bar: '<message>'
๐ฅ๏ธ title
title
Displays a title and optional subtitle in the center of the player's screen. Support Color
- title:
title: '<title>'
subtitle: '<subtitle>'
fade-in: fedeIn
stay: stay
fade-out: fadeOut
Parameters:
fadeIn
,stay
, andfadeOut
are measured in ticks (20 ticks = 1 second).
๐ sound
sound
Plays a sound effect to a player. Only works on Spigot/Bukkit
- sound: '<sound_name>;<volume>;<pitch>'
๐ป console-cmd
console-cmd
Runs a command as the server console. Support Color
- console-cmd:
- '<command>'
๐ค player-cmd
player-cmd
Runs a command as the player. Support Color
- player-cmd:
- '<command>'
๐ discord
discord
Sends a message or embed to Discord via plugin-integrated webhooks or bots.
- discord:
json: '<JSON embed>'
๐งช potion
potion
Applies a potion effect to the player. Only available for spigot
- potion: '<effect_type>;<duration>;<amplifier>'
๐ซ remove-potion
remove-potion
Removes a specific potion effect from the player. Only available for spigot
- remove-potion: '<effect_type>'
๐ฐ add-money
add-money
Adds money to the playerโs balance (requires an economy plugin like Vault). Only available for spigot
- add-money: <amount>
๐ธ remove-money
remove-money
Removes money from the playerโs balance. Only available for spigot
- remove-money: <amount>
๐๏ธ fly
fly
Enables or disables fly mode for the player. Only available for spigot
- fly: <true|false>
๐ฎ gamemode
gamemode
Changes the playerโs game mode. Only available for spigot
Mode: CREATIVE, SURVIVAL, SPECTATOR, ADVENTURE
- gamemode: '<mode>'
๐open-menu
You open the menu you have in the menu folder
- open-menu: '<menu>' # without .yml
Last updated