Wiki 9Minecraft Wiki 9Minecraft

Monitor Server Statistics and Post Them to Discord

Java EditionModGuides 4FAQ 10Related mods 60
DownloadCarpet Discarpet Mod

Get the files on 9Minecraft

Contents (3)
  1. Setting Up Periodic Updates
  2. Collecting Minecraft Data
  3. Customizing the Report

Setting Up Periodic Updates

Use Scarpet's scheduling capabilities to run a function at regular intervals. This function will gather server statistics—player count, TPS, memory usage, or custom metrics from Carpet.

Collecting Minecraft Data

Carpet provides deep access to server information. Your Scarpet script can query the number of loaded entities, active chunks, player positions, or any data Carpet exposes. Compile this information into a readable format.

Customizing the Report

Adjust the update interval to suit your needs—every 5 minutes, hourly, or on-demand. You can create multiple monitoring functions for different statistics, or combine everything into one comprehensive report. Consider sending alerts when metrics exceed thresholds, like when TPS drops significantly or player count reaches a limit.

More guides for this mod