mcHook
PluginLicenseRef-All-Rights-Reserved

mcHook

Add a simple discord webhook system to your server!

21
Downloads
0
Followers
4 months ago
Updated
📦
2
Versions

📖About mcHook

Ever wanted to add custom discord webhooks to your minecraft server?

Here is your solution!
A very simple and lightweight discord webhooks system

Don't know how to add a large JSON to your config.yml?

Here is an example!

  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"
          }
        }
      ]
    }

use this page for embeds and select in the output JSON

Commands:

/mchook [player] - Send the selected message with the selected webhook
note: the [player] is to use placeholders or send it to his name

/mchook reload - Reload the plugin

Have any problems?

Don't worry! Join the discord server and open a ticket