RA-ClearLag
Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.21.x (Java 21)
Features
Whitelist Clearing
- Most clear lag plugins delete everything. RA-ClearLag clears only the materials you list, so valuable drops are never wiped by accident
- Turn the whitelist off to clear every dropped item instead
- Optionally clear stuck arrows and experience orbs (these ignore the whitelist, since they are not item stacks)
- Choose the worlds where it runs, or use
all
Countdown Broadcasts
- A repeating cycle with a configurable interval (default 5 minutes)
- Warnings are sent at the seconds you choose, for example 60, 30, 10, 5, and 3 seconds before the clear
- After each clear, the amount removed is announced
Fully External Messages
- No text is hardcoded. Everything is in
messages.yml, and missing keys are merged in automatically after an update
PlaceholderAPI Timers
- Show the time until the next clear on a scoreboard or tab list
Dependencies
| Plugin | Required | Purpose |
|---|---|---|
| PlaceholderAPI | No (softdepend) | Enables %raclearlag_*% placeholders |
Installation
- Place
RA-ClearLag.jarinto yourplugins/folder - Restart the server
- Edit
config.ymlandmessages.yml - Run
/raclearlag reload
File Structure
text
1
plugins/RA-ClearLag/
├── config.yml # Interval, warnings, whitelist, clear options, worlds
└── messages.yml # All messages
Configuration
config.yml
yaml
1
settings:
interval: 300 # seconds between clears
broadcast-warnings: # seconds before the clear
- 60
- 30
- 10
- 5
- 3
whitelist:
enabled: true # false = clear ALL dropped items
items: # vanilla Bukkit material names
- DIAMOND
- COBBLESTONE
- IRON_INGOT
- GOLD_INGOT
- NETHERITE_SCRAP
clear:
clear-dropped-items: true
clear-arrows: false
clear-experience-orbs: false
worlds:
- all
messages.yml
yaml
1
prefix: "&8[&bRA-ClearLag&8] &r"
messages:
reload-success: "{prefix}&aConfiguration has been reloaded successfully!"
no-permission: "{prefix}&cYou don't have permission to use this command."
broadcast:
warning: "{prefix}&eGround items will be cleared in &c{time} &eseconds!"
cleared: "{prefix}&aCleared &e{amount} &aitems from the ground!"
{prefix} is replaced with the prefix, {time} with the seconds left, and {amount} with the number of items removed.
Commands
The main command is /raclearlag (aliases /rcl, /clearlag).
| Command | Description | Access |
|---|---|---|
/raclearlag help | Show the help | Everyone |
/raclearlag reload | Reload config.yml and messages.yml | raclearlag.reload |
/raclearlag clear | Clear lag right now | raclearlag.admin |
Permissions
| Permission | Default | Description |
|---|---|---|
raclearlag.admin | op | Access to all commands, including a forced clear |
raclearlag.reload | op | Reload the configuration |
PlaceholderAPI
Requires PlaceholderAPI. Identifier: raclearlag.
| Placeholder | Example | Description |
|---|---|---|
%raclearlag_timer% | 00:04:32 | Time until the next clear (HH:mm:ss) |
%raclearlag_timer_mmss% | 04:32 | Time until the next clear (mm:ss) |
%raclearlag_timer_seconds% | 272 | Time until the next clear in seconds |
%raclearlag_interval% | 00:05:00 | The configured interval (HH:mm:ss) |
%raclearlag_interval_seconds% | 300 | The configured interval in seconds |
License
Developed by RajaAditya — rajaaditya.my.id