Sends a webhook when a moderation command is executed.
Compatible with LiteBans ONLY!
Sends an embed similar to
BanAnnouncer but only requires a webhook instead of Discord Bot.
Commands:
/litebanswebhook - Reloads the plugin
Embeds:
When loading the plugin for the first time, JSON files will be added to a folder "embeds" when loading for the first time, this lets you customize what gets sent in the embed.
Example:
Code (Text):
{
"embeds": [
{
"title": "New Punishment :timer:",
"description": "The player `${entry.name}` was banned by `${entry.executorName}` for `${entry.reason}` ${entry.duration}",
"color": "16711680",
"footer": {
"text": "${entry.serverOrigin} | Powered by LiteBans Webhook"
}
}
]
}
Variables that can be used inside the templates:
- ${entry.id}
- ${entry.type}
- ${entry.name}
- ${entry.uuid}
- ${entry.ip}
- ${entry.reason}
- ${entry.executorUUID}
- ${entry.executorName}
- ${entry.removedByUUID}
- ${entry.removedByName}
- ${entry.removalReason}
- ${entry.dateStart}
- ${entry.dateEnd}
- ${entry.duration}
- ${entry.serverScope}
- ${entry.serverOrigin}
- ${entry.silent}
- ${entry.ipban}
- ${entry.active}
Showcase:
If you encounter any errors please contact me on
masterhaxixu on discord.