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

Sends a message to all players on the server. Support Color

- broadcast:
   - '<message>'

๐Ÿ’ฌ message

Sends a private message to the player who triggered the action. Support Color

- message:
   - '<message>'

๐Ÿ“Š action-bar

Displays a short action bar message above the hotbar for the player. Support Color

- action-bar: '<message>'

๐Ÿ–ฅ๏ธ 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, and fadeOut are measured in ticks (20 ticks = 1 second).

๐Ÿ”Š sound

Plays a sound effect to a player. Only works on Spigot/Bukkit

- sound: '<sound_name>;<volume>;<pitch>'

๐Ÿ’ป console-cmd

Runs a command as the server console. Support Color

- console-cmd:
    - '<command>'

๐Ÿ‘ค player-cmd

Runs a command as the player. Support Color

- player-cmd:
    - '<command>'

๐ŸŒ discord

Sends a message or embed to Discord via plugin-integrated webhooks or bots.

- discord:
    json: '<JSON embed>'

๐Ÿงช potion

Applies a potion effect to the player. Only available for spigot

- potion: '<effect_type>;<duration>;<amplifier>'

๐Ÿšซ remove-potion

Removes a specific potion effect from the player. Only available for spigot

- remove-potion: '<effect_type>'

๐Ÿ’ฐ add-money

Adds money to the playerโ€™s balance (requires an economy plugin like Vault). Only available for spigot

- add-money: <amount>

๐Ÿ’ธ remove-money

Removes money from the playerโ€™s balance. Only available for spigot

- remove-money: <amount>

๐Ÿ•Š๏ธ fly

Enables or disables fly mode for the player. Only available for spigot

- fly: <true|false>

๐ŸŽฎ 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