Webhooks
Absurdponcho edited this page Sep 19, 2022
·
15 revisions
Webhooks allow external services to be notified when certain events happen. When the specified events happen, we’ll send a POST request to each of the URLs you provide.
Important Note: The server must be stopped while editing server files. You must save your edits and restart your server for any edits to take effect.
To setup Webhooks, you must edit the Game.ini
file.
Path: Config/WindowsServer/Game.ini
Underneath the [ServerWebhooks]
header, create an entry PlayerReport="https://discord-webhook-url-here/"
Path:
/Config/WindowsServer/Game.ini
[ServerWebhooks]
; Set this to true if you want the server to call webhooks
bEnabled=true
; Discord or General
; Discord will format the messsage for posting directly to the channel
; General will format the message to be consumed by your own website / server / backend
Format="Discord"
PlayerReport="https://discord-webhook-url-here/"
PlayerLogin=""
PlayerLogout=""
PlayerLeave=""
PlayerKilled=""
PlayerQuestComplete=""
PlayerQuestFailed=""
PlayerRespawn=""
PlayerWaystone=""
ServerRestart=""
AdminSpectate=""
AdminCommand=""
You can create a Discord webhook for your Discord channel by following these steps:
- Go into your desired channel settings and select "Integrations"
- Create a new webhook.
- Copy the webhook URL and paste it into your Game.ini file.
{
"ReporterPlayerName": "Test1",
"ReporterAlderonId": "048-236-424",
"ServerName": "Server",
"Secure": true,
"ReportedPlayerName": "Test2",
"ReportedAlderonId": "123-430-121",
"ReportedPlatform": "Desktop",
"ReportType": "Killed By User",
"ReportReason": "KOS (Killed on Sight)",
"RecentDamageCauserIDs": "123-430-121, 135-654-234,"
"NearbyPlayerIDs": "123-430-121, 135-654-234,"
"Title": "I got killed",
"Message": "please help!",
"Location": "(X=328866.125,Y=-130023.359375,Z=853.25)",
"Version": "0.0.0.12968",
"Platform": "Desktop"
}
{
"ServerName": "Server",
"PlayerName": "Test1",
"AlderonId": "048-236-424",
"BattlEyeGUID": "05db16f3014acfdd6cc48dc7ce99168e",
"bServerAdmin": false
}
{
"ServerName": "Server",
"PlayerName": "Test1",
"AlderonId": "048-236-424",
"BattlEyeGUID": "05db16f3014acfdd6cc48dc7ce99168e"
}
Server Hosting Agreement || Host Your Own Server || Report a Server Bug || Common Issues and Frequently Asked Questions
Copyright Alderon Games Pty Ltd