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'🎉 success-actions
Executed only if all
conditionsare met.
❌ failure-actions
Executed if the
conditionsare not met.
actions:
- conditions:
- placeholders:
- 'money>=%price%' # Check if the player has permission
- success-actions: # Actions to perform if the player has enough money
- remove-money: '%price%' # Remove money from the player
- failure-actions: # Actions to perform if the player does not have enough money
- message: '&cYou do not have enough money to buy this item!' # Message sent if the player does not have enough moneyNow let's take a look at what all actions this plugin offerswht a offers
📢 broadcast
broadcastSends a message to all players on the server. Support Color
- broadcast:
- '<message>'- broadcast:
- '&c&lThere is one player online on the server!'💬 message
messageSends a private message to the player who triggered the action. Support Color
- message:
- '<message>'- message:
- '&aYou have completed the quest!'📊 action-bar
action-barDisplays a short action bar message above the hotbar for the player. Support Color
🖥️ title
titleDisplays a title and optional subtitle in the center of the player's screen. Support Color
Parameters:
fadeIn,stay, andfadeOutare measured in ticks (20 ticks = 1 second).
🔊 sound
soundPlays a sound effect to a player. Only works on Spigot/Bukkit
💻 console-cmd
console-cmdRuns a command as the server console. Support Color
👤 player-cmd
player-cmdRuns a command as the player. Support Color
🌐 discord
discordSends a message or embed to Discord via plugin-integrated webhooks or bots.
🧪 potion
potionApplies a potion effect to the player. Only available for spigot
🚫 remove-potion
remove-potionRemoves a specific potion effect from the player. Only available for spigot
💰 add-money
add-moneyAdds money to the player’s balance (requires an economy plugin like Vault). Only available for spigot
💸 remove-money
remove-moneyRemoves money from the player’s balance. Only available for spigot
🕊️ fly
flyEnables or disables fly mode for the player. Only available for spigot
🎮 gamemode
gamemodeChanges the player’s game mode. Only available for spigot
Mode: CREATIVE, SURVIVAL, SPECTATOR, ADVENTURE
📋open-menu
You open the menu you have in the menu folder
Last updated