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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ajneb97.gitbook.io/conditionalevents/actions/plugin-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
