Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andyld97/minecraftplayereventswebhooknotify
A (really) simple webhook for spigot and forge servers (player join, player leave)
https://github.com/andyld97/minecraftplayereventswebhooknotify
bukkit-plugin minecraft minecraft-mod minecraft-plugin spigot-plugin webhook
Last synced: 19 days ago
JSON representation
A (really) simple webhook for spigot and forge servers (player join, player leave)
- Host: GitHub
- URL: https://github.com/andyld97/minecraftplayereventswebhooknotify
- Owner: andyld97
- License: mit
- Created: 2022-11-26T17:28:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-14T19:59:09.000Z (about 1 year ago)
- Last Synced: 2024-11-12T22:43:07.006Z (3 months ago)
- Topics: bukkit-plugin, minecraft, minecraft-mod, minecraft-plugin, spigot-plugin, webhook
- Language: Java
- Homepage:
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minecraft PlayerEventsWebhookNotify (Spigot & Forge)
- A simple webhook for spigot servers (player join, player leave)
- Using HTTP POST# Spigot
- Copy PlayerEventsWebhookNotifySpigot.jar into the plugin folder of your server.
- After the first start you will get your `config.yml`-file in `plugins/PlayerEventsWebhookNotify/config.yaml`!## `config.yml`
```yaml
appendServerName: false
prefix: '[MC-SRV]'
joinMessage: 'Player %s joined the game!'
leaveMessage: 'Player %s left the game!'
playerDeathNotify: true
playerChatNotify: false
playerChatMessage: '[%1$s]: %2$s'
playerChatName: 'YOUR_NAME'
playerChatEndpoint: 'PLAYER_CHAT_ANSWER_EP'
webHookUrl: 'http://your.url'
```# Forge
- Copy PlayerEventsWebhookNotifyForge.jar into the mod-folder of your server.
- Create the file `config.json` in `config/PlayerWebhookNotify.json`!## `PlayerWebhookNotify.json`
```json
{
"appendServerName":false,
"prefix":"[MC-SRV]",
"joinMessage":"Player %s joined the game!",
"leaveMessage":"Player %s left the game!",
"webHookUrl":"http://your.url",
"playerDeathNotify":true,
"playerChatNotify":true,
"playerChatMessage":"[%1$s]: %2$s",
"playerChatName":"YOUR_NAME",
"playerChatEndpoint":"PLAYER_CHAT_ANSWER_EP"
}
```# General
Note that `playerChatName` and `playerChatEndpoint` are currently only for internal usage (they are just not yet documented)## Response you will receive
```json
{
"level": 0,
"timestamp": "ISO 8601 confirm timestamp",
"application": "Minecraft",
"message": "a message",
"scope": "your-prefix",
"device": "your-device",
"userAgent": "Spigot/PluginV1.0.0"
}
```
### Log Level
- 0: Info (e.g. Player Join)
- 1: Player Chat
- 2: Death Messages