D

FoliaTPSBar Plugin

Command: /tpsbar

Description:

FoliaTPSBar is a lightweight plugin that displays real-time server performance metrics directly to players using a boss bar, fully optimized for Folia’s multi-threaded environment.

Features:

TPS (Ticks Per Second) monitoring:

Shows the TPS of the region the player is currently in.

Color-coded for easy visual feedback:

Green: optimal performance (20 TPS)

Yellow: moderate lag (under 17 TPS)

Red: severe lag (under 10–12 TPS)

MSPT (Milliseconds Per Tick) monitoring:

Displays the region MSPT, reflecting server tick load per region.

Color-coded thresholds:

Green: 10 ms or below

Yellow: 25 ms or above

Red: 40 ms or above

Player Ping Display:

Shows the ping of the player alongside TPS and MSPT, giving a full view of network and server performance.

Boss Bar Display:

Example:

TPS: 19.8 MSPT: 11 PING: 120

Updates dynamically for each player based on their region in the server.

Full Folia Support:

Designed to be fully compatible with Folia’s multi-threaded ticking system, allowing region-based performance monitoring without blocking the main server thread.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code