DiscordSRV

DiscordSRV

86.8k Downloads

Issue With AFK Alerts Sending an Error

Goinging opened this issue ยท 0 comments

commented

Expected behavior

When using an alert like this https://pastebin.com/FEjSxmef it shouldn't cause any error when people disconnect from the server while AFK. I tried asking for support in the discord and they told me to make this bug report.

Actual behavior

When leaving while afk with an alert like this one https://pastebin.com/FEjSxmef it should sent a message for no longer being afk or at the very least not send an error in console when leaving the server. I would prefer if it didn't send a message for leaving the server while afk, but I am guessing that's an issue with how the SPEL is formatted.

This is the error it sends https://pastebin.com/YMDbw9nu

Steps to reproduce

  1. Use this alert https://pastebin.com/FEjSxmef
  2. Go Essentials AFK
  3. It sends an alert in the connected discord for going afk with this alert
  4. Disconnect from the server
  5. Just the "Player left the server" message sends in the discord and this error is sent in the console https://pastebin.com/FEjSxmef

Server software and version

This server is running Paper version 1.21.4-212-main@bb1beda (2025-03-17T10:10:58Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT) You are running the latest version Previous version: 1.21.4-199-43f37b1 (MC: 1.21.4)

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.

Ticket number or message link to where you asked in DiscordSRV's Discord server about this

20376-c

Anything else

This bug has kind of been helpful in that it prevents the afk status message from showing up when you leave the server. It used to not do that and send both. If this gets fixed and it goes back to sending both if you could give help on how to fix the SPEL so it doesn't do that, that would be great!