PlayerDeathEvent alert doesn't work properly.
DanishAnodher opened this issue ยท 1 comments
Expected behavior
- Trigger: PlayerDeathEvent
Channel: deaths
Embed:
Color: "#c0392b" # Reddish color for death alerts
Author:
ImageUrl: "{embedavatarurl}"
Name: "${deathMessage}"
Fields:
- "Level;${player.getLevel()};true"
- "Coords;```${player.getLocation().getBlockX() + ' ' + player.getLocation().getBlockY() + ' ' + player.getLocation().getBlockZ()}```;true"
Description: "**Items**\n```${drops.![type + ' x' + amount]}```"
I got this to work 2 times. But it isn't working eversince.
Actual behavior
Now It won't send anything to discord.
All the other Events and Command Triggers seem to be working fine.
Steps to reproduce
The code have been mentioned above.
Server software and version
No response
Checks
- I am not using an outdated version of DiscordSRV.
- I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.
- I didn't actually check any of these things
Anything else
I have 1.27.0 Snapshot which is the latest in Aternos > Plugins
Anyone having issues using alerts.yml should create a post on our Discord server's #alerts forum. https://discord.discordsrv.com/