Skip to content

Commit

Permalink
Add linking events (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow authored Feb 19, 2024
1 parent 17cfc2c commit 7e51179
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,39 @@ Checking if it's day in the world that the player is in
```
///
### DiscordSRV
/// tab | AccountLinkedEvent
[AccountLinkedEvent.java](https://github.com/DiscordSRV/DiscordSRV/blob/master/src/main/java/github/scarsz/discordsrv/api/events/AccountLinkedEvent.java)
```yaml
# Send an AFK alert when someone is AFK
- Trigger: AccountLinkedEvent
Channel: linked
Embed:
Enabled: true
Color: "#ffffff"
Author:
ImageUrl: "{embedavatarurl}"
Name: "User '${#event.getPlayer().getName()}' linked their account with the discord user '${#event.getUser().getAsTag()}'" # This message will show the users ingame name, not their nickname (for clarification) and the username from discord as well as their #Tag number.
Timestamp: true
```
///
/// tab | AccountUnlinkedEvent
[AccountLinkedEvent.java](https://github.com/DiscordSRV/DiscordSRV/blob/master/src/main/java/github/scarsz/discordsrv/api/events/AccountUnlinkedEvent.java)
```yaml
- Trigger: AccountUnlinkedEvent
Channel: linked
Embed:
Enabled: true
Color: "#ffffff"
Author:
ImageUrl: "{embedavatarurl}"
Name: "User '${#event.getPlayer().getName()}' unlinked their account from the discord user '${#event.getDiscordUser().getAsTag()}'"
Timestamp: true
```
///
### Essentials
/// tab | AfkStatusChangeEvent
Expand Down

0 comments on commit 7e51179

Please sign in to comment.