Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
[โ ๏ธ]NOTE! If u have aby issue with the plugin please report to in our discord!
TabPing Plugin Description ๐ฎ Main Function: The plugin displays player ping โก in milliseconds next to their nickname on the tab list (when you press Tab key). Additionally, it monitors player activity and marks inactive players as AFK ๐ค.
How the ping system works: ๐
Updates every second โฑ๏ธ: The plugin checks each player's ping on the server every 1 second (20 Minecraft ticks) Color coding by speed ๐:
- Green ๐ข < 50ms - excellent ping
- Yellow ๐ก 50-100ms - good ping
- Orange (GOLD) ๐ 100-150ms - medium ping
- Red ๐ด > 150ms - poor ping
Display format: PlayerName [45ms]
Nickname is white โช Ping is colored ๐จ (depends on value) Brackets are dark gray
How the AFK system works: ๐ด
Activity tracking ๐:
Plugin saves timestamp of each player's last movement Listens to PlayerMoveEvent - reacts when player moves ๐
Movement detection ๐ฏ:
Plugin checks if player actually moved (X, Y, Z coordinate change) Just rotating camera ๐ does NOT reset AFK timer Every real movement ๐ถ resets the timer
AFK checking โฒ๏ธ:
Every second the plugin checks all players If player hasn't moved for 5 minutes โฐ (300 seconds) - gets AFK status Format: PlayerName [120ms] [AFK] ๐ค
Returning from AFK โ :
When AFK player moves - immediately loses AFK marker Ping is automatically updated ๐
Configuration system (config.yml): โ๏ธ You can customize everything: yamlafk: time-seconds: 300 # Change to 60 = 1 minute, 600 = 10 minutes etc. โฑ๏ธ text: "AFK" # Can change to "AWAY" or "INACTIVE" ๐ color: "GRAY" # Color of AFK text ๐จ
ping: thresholds: good: 50 # Good ping threshold โ medium: 100 # Medium ping threshold โ ๏ธ bad: 150 # Bad ping threshold โ
colors: good: "GREEN" # Color for <50ms ๐ข medium: "YELLOW" # Color for 50-100ms ๐ก bad: "GOLD" # Color for 100-150ms ๐ very-bad: "RED" # Color for >150ms ๐ด
Commands: ๐ฌ:
- /tabping - Forces immediate update + shows player info in chat ๐
- /tabping reload - Reloads config.yml without server restart โป๏ธ
- /tabping toggle - Disables/enables plugin temporarily ๐
How the plugin handles AuthSystem: ๐
When player joins, plugin waits 5 seconds โณ before setting ping This gives time to log in through AuthSystem ๐ After logging in, ping appears automatically โจ
Technically - what happens behind the scenes: ๐ง
Memory ๐พ: Plugin stores in HashMaps:
lastActivity - last activity time of each ****player (UUID โ timestamp) afkPlayers - AFK status of each player (UUID โ true/false)
Events ๐ก:
PlayerJoinEvent - initializes player (resets AFK, sets activity time) ๐ PlayerQuitEvent - removes player from memory ๐ PlayerMoveEvent - updates activity time ๐
Timers โฒ๏ธ (BukkitRunnable):
Timer #1: Every second checks and marks AFK players ๐ด Timer #2: Every second updates ping for all players โก
Adventure API ๐จ: Uses modern text component system for coloring
Example scenarios: ๐ Scenario 1: Normal player โ
Player "Invvl" joins, logs in ๐ โ waits 5s โณ โ displays Invvl [35ms] (green ๐ข) Player actively plays ๐ฎ, ping updates every second
Scenario 2: Player leaves computer ๐ค
After 5 minutes without movement โ Invvl [40ms] [AFK] (AFK gray) Returns, moves ๐ โ immediately Invvl [42ms] (AFK disappears โจ)
Scenario 3: Bad internet ๐ถ
Ping jumps: 80ms โ Invvl [80ms] (yellow ๐ก) Lagspike ๐: 200ms โ Invvl [200ms] (red ๐ด) Stabilizes ๐: 60ms โ Invvl [60ms] (yellow ๐ก)
The plugin is lightweight ๐ชถ (only checks movement and ping), configurable โ๏ธ (everything in config.yml) and automatic ๐ค (requires no player interaction).
Perfect for: ๐ฏ
โ Survival servers โ PvP servers (important ping info!) โ Minigame servers โ Community servers with AFK management
Enjoy your optimized tab list! ๐โจ


