By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
Crash Announcer is a PocketMine-MP plugin that automatically sends detailed crash reports to a specified Discord channel through a webhook when an error or crash occurs on your server. This helps server administrators quickly identify and resolve issues.
.phar
file and place it in the plugins
folder of your PocketMine-MP server.config.yml
file located in the plugins/CrashAnnouncer
folder and configure it according to your preferences.# Discord webhook URL where crash reports will be sent
webhook-url: "YOUR_DISCORD_WEBHOOK_URL"
# Embed message customization
embed-title: "Server Crash Report"
embed-description: "A crash occurred on your server. Details are provided below."
embed-color: "#FF0000" # Hexadecimal color code for embed
# Plugin messages
messages:
plugin-enabled: "Crash Announcer enabled."
error-webhook: "Failed to send crash report to the webhook."
Error Handling
The plugin uses set_error_handler
and register_shutdown_function
to detect errors and crashes:
handleCrash
: Captures non-fatal errors and sends a report.handleFatalError
: Captures fatal errors and sends a report before the server shuts down.Sending Reports
When an error or crash is detected, the plugin sends a detailed report to the configured Discord webhook. The report includes:
Embed Title:
Server Crash Report
Embed Description:
A crash occurred on your server. Details are provided below.
Fields:
Example error message
plugins/MyPlugin/Main.php
42
OS: Linux
PM Version: 5.0.0
Players Online: 3
This plugin is released under the MIT License. Feel free to use, modify, and distribute it as long as you include the original license.
If you encounter any issues or have suggestions, feel free to open an issue or contribute to the plugin’s development.
Author: SoyDavs
Version: 1.0.0
You can leave one review per plugin release, and delete or update your review at any time