Skip to content
On this page

Webhook Event Definitions

Here is a list of every accepted event for inclusion in the 'webhook event' settings. These correspond pretty directly to the configurations in the messages config.

Specifying Events ≠ Enabling Messages

Adding an event to be send for a webhook does not enable Discord Connector to send that event. It only tells Discord Connector where to send the event message.

Messages for these events have to be enabled in the toggles config file (as they were previously). Any of these messages which are enabled by default are notated as such in the 'Enabled by Default' column.

Take note that by default, the webhooks are set to 'ALL' which takes any messages which happen and sends them.

General Events

These include player, server, and random events.

Special Case Events

Take note that some of these events are subsets of the special cases

Event CodeCorresponding TriggerEnabled by Default
serverLaunchServer begins starting upYes
serverStartWorld has been loadedYes
serverStopServer beings stoppingYes
serverShutdownServer has stoppedYes
serverSaveThe world has been savedYes
eventStartAn event startsYes
eventPausedAn event pausesYes
eventResumedAn event resumesYes
eventStopAn event finishesYes
playerJoinA player joins the serverYes
playerLeaveA player joins the serverYes
playerShoutA player joins the serverYes
playerPingA player joins the serverYes
playerDeathA player joins the serverYes
playerFirstJoinA new player joins the serverYes
playerFirstLeaveA player leaves the server for the first timeNo
playerFirstShoutA player shouts in chat for the first timeNo
playerFirstPingA player pings the map for the first timeNo
playerFirstDeathA player dies for the first timeYes

Leaderboard Events

These are events which represent sending the leaderboards

Event CodeCorresponding TriggerEnabled by Default
activePlayersThe active players leaderboardNo
leaderboard1The custom leaderboard 1No
leaderboard2The custom leaderboard 2No
leaderboard3The custom leaderboard 3No
leaderboard4The custom leaderboard 4No
leaderboard5The custom leaderboard 5No

3rd Party Events

It's possible for other mods to hook into Discord Connector to send messages to Discord. As more get added to this list, they will be able to be specifically attached to a certain webhook.

Event CodeCorresponding Trigger
cronjobOutput from cronjob

Special Case Events

These are shorthand to represent multiple events.

Event CodeCorresponding TriggerEnabled by Default
ALLAll messages get sent to this webhookN/A
serverLifecycleAny server launch, start, stop, shutdown messages are sent to this webhookN/A
eventLifecycleAny event start, pause, resume, or stop/end messages are sent to this webhookN/A
playerAllAny messages about player's activity are sent to this webhookN/A
playerFirstAllAny message about a player's first X are sent to this webhookN/A
leaderboardsAllAny message for a leaderboard are sent to this webhookN/A
otherA few other mods/plugins utilize Discord Connector's webhook to send messages. Those get tagged as 'Other' events.N/A