Home›Java›Mods›ServerWebhook
ModsJava

ServerWebhook

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

by juciee_ · on Modrinth

⬇ Download on Modrinth

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

Configuration Structure

{
  "webhooks": [
    {
      "server": "ServerName",
      "url": "WebhookURL",
      "method": "HTTPMethod",
      "body": "RequestBody (optional)",
      "headers": {
        "HeaderName": "HeaderValue"
      }
    }
  ]
}

Available Placeholders

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

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

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more