# Plugin Actions

## DISCORDSRV EMBED

{% hint style="warning" %}
Requires DiscordSRV: <https://www.spigotmc.org/resources/discordsrv.18494/>
{% endhint %}

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

{% hint style="info" %}
**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: <https://htmlcolorcodes.com/>)\
description:\<description>\
footer:\<footer>\
image:\<image url>\
thumbnail:\<image url>
{% endhint %}

```yaml
# 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"
```
