ServerWebhook

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/serverwebhook
资源信息

Minecraft 版本: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: velocity

标签: management utility

资源介绍

ServerWebhook Plugin

A simple plugin for Velocity proxies that sends a notification to a configured webhook when a player connects to a specific server.

Features

  • Per-Server Settings: Configure webhooks for specific servers or for all servers ("all").
  • HTTP Method Support: Supports GET and POST requests.
  • Dynamic Data Transfer: Use placeholders like {player.name}, {player.uuid}, and {server.name} in the webhook's URL, body, and headers to send dynamic information.

Configuration Structure

{
  "webhooks": [
    {
      "server": "ServerName",
      "url": "WebhookURL",
      "method": "HTTPMethod",
      "body": "RequestBody (optional)",
      "headers": {
        "HeaderName": "HeaderValue"
      }
    }
  ]
}
  • server: Specify the name of the server to send the webhook for. Set to "all" to receive notifications from all servers.
  • url: The URL address to send the webhook request to.
  • method: Supports GET or POST.
  • body: The body to send with a POST request. (optional)
  • headers: Custom headers to include in the request. (optional)

Available Placeholders

You can use the following placeholders in the url, body, and headers values to include dynamic information:

  • {player.name}: The player's name
  • {player.uuid}: The player's UUID
  • {server.name}: The name of the server the player connected to

Configuration Example

{
  "webhooks": [
    {
      "server": "limbo",
      "url": "http://localhost:8080/webhook",
      "method": "POST",
      "body": "{\"username\": \"{player.name}\", \"content\": \"{player.name} has connected to {server.name}.\"}",
      "headers": {
        "X-Auth-Token": "your-secret-token"
      }
    },
    {
      "server": "main",
      "url": "https://discord.com/api/webhooks/your_webhook_id/your_webhook_token",
      "method": "POST",
      "body": "{\"content\": \"Player {player.name} ({player.uuid}) connected to {server.name}\"}"
    },
    {
      "server": "all",
      "url": "http://localhost:8080/player_join?player={player.name}&server={server.name}",
      "method": "GET"
    }
  ]
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Le Fishe Exotique Au Chocolat

价格:0 墨喵币
下载量:0

查看详情
beaconauth

价格:0 墨喵币
下载量:0

查看详情
Subtitle-Highlight-Unofficial-reset

价格:0 墨喵币
下载量:0

查看详情
Puddings & Pastries

价格:0 墨喵币
下载量:0

查看详情