Changelog
Added Things
- 
You can now also make the togglemessage command inaccessible to non-op via config.yml 
- 
You can now hide the /plugin /pl /version commands via config.yml which can prevent exploit attempts 
Changelogs
Added Placeholder API Support
| Placeholder | Function | Explanation | 
|---|---|---|
| %clearlag_nextclear% | Next Clear Time | Displays the time remaining until the next scheduled automatic entity clear. The output is formatted in a readable format, such as 5m 30s (5 minutes and 30 seconds) | 
| %clearlag_stats% | Last Clear Statistics | Shows the number of entities that were removed during the most recent automated or manual clear action. Example output: 150 entities have been removed | 
| %clearlag_entity_total% | Total Entity Count (Server) | Provides the absolute count of all entities currently loaded across all worlds on the server. | 
| %clearlag_entity_world_<worldname>% | Entity Count (Per World) | Displays the number of entities in a specific world defined by replacing <worldname>. For example, %clearlag_entity_world_world_nether% would show the entity count only in the Nether | 
| %clearlag_ram% | RAM Usage | Reports the server's current Java Virtual Machine (JVM) memory usage. It typically shows the used memory versus the total allocated memory in megabytes (MB). Example output: 1024.55 MB / 2048 MB | 
Changelogs
Removed Things
- 
The /cl settings and /settings commands have been removed. The GUI for the settings is attached 
- 
Sounds and the configuration entry have been completely removed. 
New Things
- 
The issue where the copper golems were not deleted has been fixed. 
- 
The new /cl togglemessages command now allows you to toggle the broadcast message yourself. It is stored in playerdata.yml. 
Changelogsss:
- 
New Top-Worlds Command: Use /cl topworld to view a leaderboard of worlds, sorted by the total number of entities (items, mobs, etc.). This is perfect for identifying lag sources. 
- 
World-Specific Disabling: The automatic clear can now be disabled for specific worlds by listing them in the configuration file. 
- 
Enhanced Discord Integration: Regular performance reports (average TPS and the number of removed entities) are now automatically sent via the Discord webhook at configurable intervals. 
- Added Item protection
You can turn it on/off via Config.yml
What this actually does is protect your loot after your death from clears for a certain configurable time or permanently
- Fixed Update Notification
- Fixed /cl /clearlag nextclear command
- Added clearlag.warnings.receive Allows the user to receive performance warning messages
fixed premission bug with clearlag.all Premission
fixed premission bug with clearlag.all Premission
Fixes the permission system
You can now use the Advanced Mode with Luckperms or the Normal Mode without Luckperms
Log File
From now on, all actions performed by the plugin will be saved in a file
Discord Integration
The Discord integration has also been added. You can now forward all messages/commands to Discord via Webhook
How To Create a Webhook
- Go to the channel where you want to receive messages. Then go to the channel settings.
- Go to Integrations and click on Webhook.
- Click on New Webhook.
- Give your webhook a name and, optionally, a profile picture and copy the Webhook URL
- Search for this Field
# --- Discord Webhook Integration ---
# Sends log messages to a Discord channel.
discord:
  webhook-enabled: false
  webhook-url: ""
Change it to this
# --- Discord Webhook Integration ---
# Sends log messages to a Discord channel.
discord:
  webhook-enabled: true
  webhook-url: "Here is your webhook URL"
Then Restart the Server or /clearlag reload and it should be enabled
If you have trouble with something join my Discord
VER: 1.6.1
Fixed a bug that caused breaded/tagged/name tagged mobs to be deleted by auto/manual/Ai optimization
You can turn these three things on/off via config.yml breaded/tagged/name
New Version is out! New Things:
Bug fixes New Features New Config New Menu This is for all Version under 1.19
If you play on versions that are newer, for example 1.18, you will probably get an error that the plugin is too old but it will still work perfectly. If it doesn't work, please contact me.
New Version is out!
New Things:
- Bug fixes
- New Features
- New Config
- New Menu
This is only for 1.19
New Version is out! New Things:
- Bug fixes
- New Features
- New Config
- New Menu
This is only for 1.20
New Version is out! New Things:
- Bug fixes
- New Features
- New Config
- New Menu
This is only for 1.21


