跳到正文

TPSnitch

作者:Dashtiss

TPSnitch is a Minecraft mod that monitors and displays server TPS (ticks per second) to help track server performance.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

TPSnitch

TPSnitch is a Fabric Minecraft server utility mod for monitoring server performance. It automatically logs TPS (Ticks Per Second), MSPT (Milliseconds Per Tick), and player count at configurable intervals to a JSON file, making it easy to analyze server health over time.

Features

  • Logs TPS, MSPT, and player count to a JSON file keyed by timestamp
  • Configurable log interval, debug mode, and log file name
  • Player count tracked via join/leave events
  • Utility functions for retrieving TPS and MSPT from the server object
  • Supports Fabric

Output Format

The log file is a JSON object where each key is an ISO timestamp, and each value is an object of TPS, MSTP and Player Count:

{
  "2025-04-23T21:00:00Z": {
    "TPS": 20.0,
    "MSPT": 50.0,
    "PlayerCount": 5
  },
  ...
}

Getting Started

  1. Requires Java 21
  2. Download the latest jar file
  3. Place the jar in your server’s mods folder
  4. Start your server

Configuration

  • Log interval, debug mode, and log file name are configurable via your loader’s config system
  • Logs are saved to a JSON file (default: tpsnitch_log.json)

License

Apache 2.0


For questions or support, put it in our Issues.

常见问题

TPSnitch 支持哪些 Minecraft 版本?

TPSnitch 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

TPSnitch 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Dashtiss 的其他作品

查看全部 →