A very simple and lightweight discord webhooks plugin
Wanted to add webhooks to your server?
Here is the solution!
A large JSON embed example:
Code (Text):
welcome: |
{
"content": "Welcome to the server, **%player_name%**!",
"tts": false,
"embeds": [
{
"author": {
"name": "Server Info: Get Started",
"url": "https://example.com"
},
"title": "Welcome to the Server!",
"url": "https://example.com/rules",
"description": "We are glad to have you here! Please read the rules before playing.\n\nType **/rules** in-game for a quick overview.",
"fields": [
{
"name": "Player",
"value": "Player **%player_name%** has joined for the first time!",
"inline": true
},
{
"name": "Online Members",
"value": "There are now **%server_online%** players online.",
"inline": true
}
],
"image": {
"url": "https://cubedhuang.com/images/alex-knight-unsplash.webp"
},
"thumbnail": {
"url": "https://crafatar.com/avatars/%player_uuid%?size=64"
},
"color": 3447003,
"footer": {
"text": "Server Join Notification | mcHook",
"icon_url": "https://slate.dan.onl/slate.png"
}
}
]
}
Commands:
/mchook <webhookID> <messageID> [player]
note: the [player] is to use placeholders or send it to his name
/mchookreload - Reloads the plugin
If you have any problems, please don't use the review box, instead, go to the discord server and open a ticket
https://discord.gg/bzkdp9QpbQ