HomeJavaModsSpectatorOptimizer | Advanced AFK & Lag Management
SpectatorOptimizer | Advanced AFK & Lag Management
ModsJava

SpectatorOptimizer | Advanced AFK & Lag Management

⬇ Download on Spigot
SpectatorOptimizer
The ultimate, lightweight performance booster for modern Minecraft servers!
by anrevlx


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

⚡ What is SpectatorOptimizer?
Are AFK players lagging your server with loaded chunks, running mob farms, and active redstone machines? Traditional plugins simply kick players out, which ruins player retention and creates annoying queues.

SpectatorOptimizer offers a modern, smart alternative! It automatically freezes the hardware load caused by inactive players by moving them into a highly optimized Spectator Mode. The moment they move, they are seamlessly returned to their game.

⚙️ Features that make it "Pop"
» Smart Inactivity Triggers: Automatically shifts players into Spectator mode after X seconds of complete stillness.
» Instant WASD Recovery: As soon as the player interacts or moves, they instantly wake up in their original game mode and position.
» Emergency TPS Protection: If your server's TPS drops below a customizable limit, the plugin aggressively checks and optimizes idle players to prevent performance drops or crashes.
» OP Safety Net: Server operators (OP) are completely ignored by the background tasks. Admins can stay AFK safely while monitoring the server.
» Multi-Language Config: Clean and easy config.yml allowing you to translate every single text line and use standard '&' color codes.
» Ultra Lightweight Execution: Coded natively for Paper 1.21.1 using modern asynchronous timers to ensure 0.00% impact on MSPT.

Commands & Permissions
» /so help — Opens up the interactive help menu. (Available to all players)
» /so reload — Reloads the configuration file on-the-fly. (Strictly OP Only)
» Bypass permission for donators/VIPs: spectatoroptimizer.bypass

⚙️ Default Configuration (config.yml)
Code (YAML):
settings:
  tps-threshold
: 19.0
  afk-time-seconds
: 300
  bypass-permission
: "spectatoroptimizer.bypass"

messages
:
  prefix
: "&b[SpecOpt] "
  afk-spectator
: "&7You have been put into &eOptimization Spectator&7 mode due to AFK."
  tps-spectator
: "&cServer performance is low. &7You were temporarily moved to Spectator mode to reduce lag."
  returned
: "&aWelcome back! &7You have been returned to Survival mode."
  no-permission
: "&cOnly server operators (OP) can execute this command!"
  reload-success
: "&aConfiguration files successfully reloaded!"
  help-header
: "&3--------- &bSpectatorOptimizer Help &3---------"
  help-cmd-help
: "&e/so help &7- Shows this help menu."
  help-cmd-reload
: "&e/so reload &7- Reloads the plugin configuration (OP only)."
  help-footer
: "&3---------------------------------------"
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Found a bug? Please report it in the Discussion tab, not in the review section!
If you find this utility helpful, please leave a ⭐⭐⭐⭐⭐ review to support the project!


Plugin developed by anrevlx.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

SpectatorOptimizer | Advanced AFK & Lag Management is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 22 times (via Spigot). Download it and open it directly in the game.

Explore more