plan-player-analytics / Plan

Player Analytics plugin for Minecraft Server platforms - View player activity of your server with ease. :calendar:
https://www.spigotmc.org/resources/plan-player-analytics.32536/
GNU Lesser General Public License v3.0
825 stars 167 forks source link

MySQL connection error caused chat to stop working #3682

Closed FaultyFunctions closed 2 days ago

FaultyFunctions commented 2 days ago

Describe the issue

The plugin ran into a MySQL connection error and then chat in-game did not work and would not send to anyone. DiscordSRV still worked in the background and in-game chat messages were being sent to Discord but weren't showing up in game because of this error. I messaged my server support and they said the MySQL database went down but I'm not sure why chat stopped working because Plan couldn't connect to the MySQL database.

Exceptions & Other Logs

https://mclo.gs/pHCAeaK

Plugin versions

Plan-5.6-build-2883

Additional information

N/A

AuroraLS3 commented 2 days ago

Logs say that InteractiveChat was trying to do a placeholder replacement for Plan which failed due to database connection being down, so it threw error instead of replacing the placeholder and InteractiveChat logged the error rather than send the chat message

AuroraLS3 commented 2 days ago

I think a fix on Plan side is to catch more errors on placeholder request and show Error rather than throwing it to the other plugin that doesn't know to expect it

AuroraLS3 commented 2 days ago

Fixed build will appear here in 10 minutes https://github.com/plan-player-analytics/Plan/actions/runs/9739796493

This doesn't fix your database issue though, just the chat not working when database is down.

FaultyFunctions commented 2 days ago

Awesome thank you so much! Yeah the database issue isn't Plan's fault at all. Thanks again!