ConditionalEvents
  • ConditionalEvents Wiki
  • How to Start
  • Events Tutorial
  • Event Types
    • Player Events
    • Block Events
    • Item Events
    • Other Events
    • Plugin Events
  • Conditions
  • Actions
    • "To" Actions
    • Event Actions
    • Plugin Actions
  • Variables
  • Custom Events
  • Commands and Permissions
  • Config.yml
  • PlaceholderAPI Variables
  • API
  • Videos
  • Addons
Powered by GitBook
On this page

Was this helpful?

  1. Actions

Plugin Actions

PreviousEvent ActionsNextVariables

Last updated 1 year ago

Was this helpful?

DISCORDSRV EMBED

Requires DiscordSRV:

It will send an embed message to a specific DiscordSRV channel. Use this format: discordsrv_embed: channel:<channel>;<property>:<value>;<propertyN>:<valueN;

General properties:

channel:<channel> (MANDATORY, This property corresponds to a discord channel name defined in the DiscordSRV config) author_name:<name> title:<title> author_avatar:<image url> (Use author_avatar:%player% when you want to set the icon to the player's skin. If you don't set this property, the image of the bot will be set instead.) color:<r>,<g>,<b> (Must be a RGB value (r, g, b, separated with commas). You can get RGB colors here: ) description:<description> footer:<footer> image:<image url> thumbnail:<image url>

# This will send an alert to an "admin" channel when a player
# uses the /plugins command.
example:
  type: player_command
  conditions:
  - "%main_command% equalsIgnoreCase /plugins"
  actions:
    default:
    - "discordsrv_embed: channel:admin;author_name:Suspicious Activity!;author_avatar:%player%;title:%player% used a forbidden command.;footer: This user has played on the server for: %statistic_time_played%.;description:Command used: %command%;color:255,0,0"

https://www.spigotmc.org/resources/discordsrv.18494/
https://htmlcolorcodes.com/