TPSLimiter - Reduce Server Load by Disabling Entity Spawning, AI, and Removing Ground Items
TPSLimiter is a lightweight plugin designed to help you maintain server performance. When the server's TPS (ticks per second) drops below a configurable threshold, the plugin will automatically disable entity spawning and AI. Once the server's TPS recovers and goes above the threshold, the plugin enables entity spawning and AI again. Additionally, the plugin can remove items on the ground after a specified number of ticks, which can be enabled/disabled and configured in the config.yml file.
Features:
- Automatically disables entity spawning when TPS is below the threshold
- Disables AI for entities when TPS is below the threshold
- Re-enables AI for entities and spawning when TPS recovers
- Removes items on the ground after a configurable number of ticks
- Enable/disable item removal feature and customize tick time in the config.yml
- Customizable TPS threshold
Installation:
- Download the TPSLimiter.jar file and place it in your server's plugins folder.
- Restart your server to load the plugin.
- (Optional) Customize the TPS threshold, item removal settings, and other options in the config.yml file.
Compatibility:
- Tested with Spigot API version 1.13 and later.
- Should be compatible with most other plugins, but be cautious with plugins that also manage entity spawning, AI, and item removal.
Note:
This plugin is a simple example and may require customization based on your specific needs and server setup. Disabling entity AI and creature spawns or removing ground items might cause unintended gameplay issues, so use this solution with caution. Always monitor your server performance to ensure the plugin behaves as expected.
REQUIRES JAVA 17+