![AntiCrash [Pterodactyl]](https://cdn.metamods.net/images/mods/anticrash-pterodactyl/logo.png)
AntiCrash [Pterodactyl]
Say goodbye to sudden server crashes! This plugin automatically restarts your Minecraft server when it reaches a critical level of RAM usage. The system warns players in advance with a countdown before restarting, and all text messages can be fully customized to your needs.
Requirements
To use the plugin, you'll need a server on the Pterodactyl control panel and an API key from that panel.
Quick Installation
- Download the plugin and upload it to your server
- Start your server
- Configure parameters in the config.yml file
- Restart the server to apply changes
Available Commands
- /pteroconfig — view current plugin settings (console only)
- /pteroram — check current RAM usage
- /pterosetram — set maximum RAM level before restart
Permissions
To use all commands, the pac.use permission is required.
Default Settings
# -------------------------------------
# Settings
# -------------------------------------
threshold: 8192 # Maximum RAM in MB before server restart
apiKey: "ptc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # Your personal API key from Pterodactyl panel
apiUrl: "https://panel.example.com" # Base URL of your panel. Important: without / at the end of address
serverId: "xxxxxxxx" # ID of this server. Can be found in URL after /server/
# -------------------------------------
# Messages
# -------------------------------------
kickMessage: "&cThe server will restart. Connect again in 3-5 minutes." # Message to players during restart
restartMinutes: "&cServer will restart in {0} minutes!" # Countdown message for minutes. {0} replaced with minutes
restartSeconds: "&cServer will restart in {0} seconds!" # Countdown message for seconds. {0} replaced with seconds
restartNow: "&cServer is restarting now." # Message after 1 second
pteroram: "&aCurrent RAM usage: {0}" # Message for /pteroram command. {0} replaced with RAM usage in MB
noPermission: "You don't have permission to execute this command." # Message for players without pac.use permission