Download AntiCrash [Pterodactyl] — Minecraft Mods — MetaMods

AntiCrash [Pterodactyl]

Active

Downloads

0

Last update

1 year ago

Versions

1.8.8 — 1.21
Server
Control
Game optimization
Technological

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

  1. Download the plugin and upload it to your server
  2. Start your server
  3. Configure parameters in the config.yml file
  4. 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
Project members
7AGAM

7AGAM

Developer

Created: 13 Feb 2024

ID: 13296