/clearlag
See when the next clear runs, or run one now
/clearlag [time]/clearlag now/clearlag reload
Removes dropped items, arrows and XP orbs on a timer, with a countdown in chat first. It also gives staff lag tools: a performance report, entity counts, busy chunks, and a redstone switch.
/clearlag reload/clearlag now/gc/lagg check/lagg chunks/redstone off/redstone on/redstone status/lagbar tps/lagbar all/lagbar off/clearlag reload/gc trendWill it remove my players' animals or pets?
Not by default. Mobs are only removed if clear.creatures is true, and even then mobs near players and the types in creatures.never-remove stay.
Can players hide the countdown messages?
Yes. Players with the permission dclearlag.mute do not see them. In DSettings it is the Clearlag Alerts switch.
Why does /lagg gc say the manual GC is off?
Forcing garbage collection often does more harm than good, so it is off. Set gc.allow-manual-gc to true if you need it.
What is /bin for?
It opens a container. Anything a player puts in is destroyed when they close it. Set bin.shared to true for one shared bin.
Where are the lagbar choices saved?
In a SQLite file at plugins/DClearLag/data/lagbars.db by default, or in the shared MySQL or MariaDB database of a network. Set database.type in settings.yml to give DClearLag its own. Changing it needs a restart.
Is there a placeholder for the numbers?
Yes, with PlaceholderAPI: %dclearlag_tps%, %dclearlag_mspt%, %dclearlag_mspt_min%, %dclearlag_mspt_max%, %dclearlag_ram_percent%, %dclearlag_ram_used%, %dclearlag_ram_max%, %dclearlag_gc_percent%, %dclearlag_entities%, %dclearlag_chunks%, %dclearlag_tile_entities% and %dclearlag_status%.
Does it work on Folia?
Mostly. Folia has no single TPS, so TPS and MSPT show n/a and the report shows memory and counts. The automatic optimizer does nothing on Folia.
Which permissions does /gc and /lagg need?
/gc needs dclearlag.gc. /lagg check, chunks, area and killmobs need dclearlag.check, dclearlag.chunks, dclearlag.area and dclearlag.killmobs. Clicking a chunk line to teleport needs dclearlag.tp. All are for operators by default.
Menus and messages come from the default DClearLag files. Run a command, click an example, or pick a menu.
No menu open. Run a command below or pick a menu from the list.
<name> you must fill in[name] optionalword typed as shown
See when the next clear runs, or run one now
/clearlag [time]/clearlag now/clearlag reloadalso /lag
Server performance report - TPS, MSPT, memory, chunks and entities
/gc/gc trend/gc hotspots/gc clearNeeds dclearlag.gc, operators only by default.
Lag tools - entity counts, busy chunks, area and mob cleanup
/lagg check/lagg chunks/lagg area/lagg killmobs/lagg clear/lagg gcalso /lagbars, /perfbar
Show live server numbers (TPS, MSPT, ping, memory, entities) in a bossbar
/lagbar/lagbar tps/lagbar mspt/lagbar ping/lagbar ram/lagbar entities/lagbar all/lagbar offNeeds dclearlag.lagbar, which everyone has by default.
Run one optimize pass now - clears drops and excess mobs
/optimizeNeeds dclearlag.optimize, operators only by default.
Switch redstone on or off, or see its limit
/redstone on/redstone off/redstone statusNeeds dclearlag.redstone, operators only by default.
also /trash, /dustbin
Open a container for things nobody wants
/binNeeds dclearlag.bin, which everyone has by default.
Who has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| dclearlag.bin | Everyone | Use /bin |
| dclearlag.mute | Nobody | Hides the clear-lag countdown and result messages |
| dclearlag.admin | Operators | Run a clear-lag sweep by hand, reload the config, request a manual GC, optimize and control redstone |
| dclearlag.optimize | Operators | Use /optimize |
| dclearlag.redstone | Operators | Use /redstone |
| dclearlag.alerts | Operators | Sees the automatic optimizer's enter and leave notices |
| dclearlag.gc | Operators | Use /gc |
| dclearlag.check | Operators | Use /lagg check |
| dclearlag.chunks | Operators | Use /lagg chunks |
| dclearlag.tp | Operators | Click a /lagg chunks line to teleport there |
| dclearlag.area | Operators | Use /lagg area |
| dclearlag.killmobs | Operators | Use /lagg killmobs |
| dclearlag.lagbar | Everyone | Use /lagbar and its menu |
| dclearlag.lagbar.tps | Everyone | Show the TPS bossbar |
| dclearlag.lagbar.ping | Everyone | Show the ping bossbar |
| dclearlag.lagbar.mspt | Operators | Show the MSPT bossbar |
| dclearlag.lagbar.ram | Operators | Show the memory bossbar |
| dclearlag.lagbar.entities | Operators | Show the entity count bossbar |
| dclearlag.bypass.limits | Nobody | Items dropped and arrows shot by this player ignore the per-chunk entity limits |
plugins/DClearLag/aliases.yml
'dclearlag.bypass.limits''dclearlag.alerts'permissions:'dclearlag.limits.bypass': 'dclearlag.bypass.limits''dclearlag.notify': 'dclearlag.alerts'
plugins/DClearLag/settings.yml
Lag control: clears dropped items on a timer, a /bin, entity limits, an automatic optimizer and redstone control. Edit, then run /clearlag reload. A setting you delete comes back with its default. Help and support: https://discord.devamy.net or dstudios@devamy.net
ENLanguage of the plugin's texts.
EN = English FR = French ES = Spanish
'�B5FF&lCLEAR LAG &8| 'Text shown in front of every chat message from this plugin. Use '' for no prefix. & colour codes and &#RRGGBB work.
1800--- Sweeps --- A sweep removes the things listed under "What gets removed" below, on a repeating timer. How many seconds pass between two sweeps. Example: 1800 = every 30 minutes, 600 = every 10 minutes. The lowest allowed is 30.
[30, 5, 4, 3, 2, 1]At which moments players get a warning, counted in seconds before the sweep. Example: [30, 5, 4, 3, 2, 1] warns at 30 seconds left, then at each of the last 5 seconds. The biggest number is when the countdown starts. Use [] to sweep with no warnings at all.
--- Where messages appear --- Warnings and results can go to chat, to the action bar (the text above the hotbar), or both.
trueSend each warning to chat?
falseShow each warning on the action bar?
0Use this when chat is false but you still want the last few warnings in chat. Example: 5 = the warnings of the final 5 seconds go to chat. 0 = none.
0Show a live countdown on the action bar for this many seconds before the sweep. Example: 10 = a countdown from 10 to 0 above the hotbar. 0 = no countdown.
falseWhat about players who muted the messages (permission in mute-permission below)?
true = they still see the action bar countdown, so a sweep never surprises them. false = they see nothing.
The "sweep complete" and "bin emptied" lines shown after a sweep.
truefalse--- Sound ---
The sound played at every warning. Muted players do not hear it.
sound = a Minecraft sound name such as entity.experience_orb.pickup. '' = no sound. volume = 1.0 is normal, lower is quieter. pitch = 1.0 is normal, higher is sharper.
''0.81.2--- What gets removed --- Pick which kinds of things a sweep deletes. true = removed, false = left alone.
trueItems lying on the ground.
trueArrows stuck in the ground or flying.
trueExperience orbs.
falseAlso remove mobs?
true = animals and monsters are removed too (see the `creatures:` section for what is spared). false = mobs are left alone (recommended). A sweep that takes someone's horse costs more trust than it saves.
Named, tamed, leashed, ridden, villager and boss mobs are never removed either way.
trueKeep dropped items that have a custom name (renamed in an anvil)?
falseKeep dropped enchanted items?
true = they stay on the ground forever (can pile up). false = they are removed, but grace-seconds below gives owners time to pick up their gear.
Items made by these plugins are never removed. This protects special items like custom tools and keys. Write a plugin name in lowercase to protect all its items, or name:key to protect one kind only. Items from the Devamy plugins (drills, sell axes, crate keys) are always kept.
Item types that are never removed, written as Minecraft material names (capital letters). A * matches any part of the name: '*SHULKER_BOX' keeps every colour of shulker box.
10How many seconds a new drop is safe from a sweep after it lands. This lets a player who just died run back and pick up their things. Example: 10 = ten seconds. 0 = off.
--- Mobs --- Only matters when clear.creatures is true.
16Mobs within this many blocks of any player are left alone, so a sweep does not clear the farm someone is standing in. Example: 16 = mobs up to 16 blocks away are safe. 0 = off.
Mob types that are never removed, on top of the ones that are always spared. Write Minecraft entity names in capital letters.
[]Which worlds a sweep cleans, written as folder names. [] = every world. Example:
worlds:
- world
- world_nether'dclearlag.mute'Players with this permission do not see the sweep messages and warnings. The settings menu uses it as an on/off switch for each player.
--- The bin --- /bin opens a chest-like menu where players throw away things they do not want. Nothing is saved to disk.
trueIs /bin available?
6Height of the bin menu in rows, 1 to 6 (each row holds 9 items).
'&8Bin'Title shown at the top of the bin.
'�B5FF&lLAG &8| 'Text shown in front of the messages from /gc and /lagg.
--- Manual tools --- Commands for admins (permission dclearlag.admin).
falseCan admins run /lagg gc to force a memory cleanup (garbage collection)?
true = yes. false = no (recommended). It rarely helps and can freeze the server for a moment.
128The biggest radius, in blocks, that /lagg area accepts. A bigger number is cut down to this.
--- Lag monitor --- Watches TPS (ticks per second, 20 is perfect) and MSPT (milliseconds per tick, under 50 is fine) in the background. It feeds /gc, /gc trend, the lagbar bossbars and the %dclearlag_...% placeholders. On Folia the server has no single TPS, so those values show n/a and only memory and counts are shown.
5How often a sample is taken for the /gc trend graph. A sample is cheap. The trend keeps 60 samples, so 5 seconds covers the last 5 minutes.
Below warn the server counts as struggling, below critical as in trouble.
17.012.0Above warn the server counts as struggling, above critical as in trouble.
45.070.0Tells staff with dclearlag.alerts in chat when the server gets worse, and again when it recovers.
false120While the lag lasts you are reminded at most this often.
Runs one clear (the same as /clearlag now) when the server is in critical lag.
false600Never clears more often than this, so a long lag spike does not clear again and again.
--- Lag bars --- /lagbar shows live numbers in a bossbar at the top of the screen. Each player picks their own bars and the choice is remembered. Who may use which bar is set by the permissions dclearlag.lagbar.tps, .mspt, .ping, .ram and .entities.
true20How often the bars refresh, in ticks (20 ticks are 1 second). Lower than 10 is rarely worth it.
falsetrue = one bossbar that shows every bar a player picked on one line.
false = one bossbar per pick, stacked.
PROGRESSBossbar look: PROGRESS (solid), NOTCHED_6, NOTCHED_10, NOTCHED_12 or NOTCHED_20.
The value at which a bar is completely full.
3005000Green up to good, yellow up to warn, red above. TPS is the other way round: green from good up.
18.015.035.050.080150708525004000--- Database --- Where DClearLag keeps each player's chosen lagbar bossbars. With type default it follows the database set in DCore's config.yml: by default a SQLite file at plugins/DClearLag/data/lagbars.db, which needs nothing installed, or the shared mysql or mariadb database on a network. The first start on this version moves the old yml data files into the database by itself, after copying them to plugins/DClearLag/backups/legacy-<date>. Changes here need a restart; /dclearlag reload does not apply them.
'default'default follows DCore. Set sqlite, h2, mysql or mariadb only if DClearLag should use its own database instead.
'data/lagbars.db'The file name inside plugins/DClearLag, used when the type is sqlite or h2 (or default on a single server).
''A full jdbc:mariadb:// or jdbc:mysql:// address. When you fill it in, it wins over host, port and database below.
'localhost'The database server, used only when the type is mysql or mariadb.
3306'minecraft'''''''Extra connection parameters added to the address, for example useSSL=false. Leave empty if you are unsure.
'dclearlag_'Every table of DClearLag starts with this text. Use only a-z, 0-9 and _. Two servers that share a database must use the same value.
--- Entity limits --- Stops one chunk (a 16x16 block column of the world) from filling up with entities. When a chunk is at its limit, new ones are simply not created. Existing entities are never removed. Named, tamed, leashed, ridden, villager and boss mobs are not counted. Spawns from commands, spawn eggs, dispensers and golem builds always work.
trueTurn all entity limits on or off.
'dclearlag.bypass.limits'Players with this permission ignore the limit for the items they drop and the arrows they shoot. The old name dclearlag.limits.bypass still works too.
The most entities allowed in one chunk, for each kind. 0 = no limit for that kind. Example: hostile: 80 = a chunk holds at most 80 monsters, more spawns are cancelled.
200100608060204030{}Use different numbers in one world, by world name. Any kind you leave out uses the numbers above. Example:
worlds:
farms:
hostile: 200[]Worlds where the limits do not apply at all, by name. [] = limits work in every world.
Limits how many mobs spawners can produce in one chunk, so a pile of spawners cannot lag it. Off by default because it changes how spawners behave.
false40Most mobs the spawners of one chunk may have alive at once. Example: 40.
--- Automatic optimizer --- Watches how fast the server runs. When it is slow for a few checks in a row, it takes steps to help (listed under `steps`), and when the server is healthy again it undoes the temporary ones. TPS is how many ticks the server runs per second (20 is perfect). MSPT is how many milliseconds one tick takes. Off by default. Does nothing on Folia.
false18.0The server counts as struggling when its TPS drops below this. Example: 18.0.
45.0It also counts as struggling when one tick takes longer than this many milliseconds. 50 is the point where TPS starts to fall, so 45 reacts a little early.
19.5The server counts as healthy again when TPS is at least this ...
40.0... and one tick takes at most this many milliseconds. Keep both stricter than the two settings above, or the optimizer will switch on and off all the time.
5Seconds between two speed checks.
3How many bad checks in a row before it starts (and good checks in a row before it stops). With the defaults, 3 checks of 5 seconds = about 15 seconds.
60The least number of seconds between two optimize runs.
trueTell staff and the console when it starts and stops?
'dclearlag.alerts'Who gets that message. The old name dclearlag.notify still works too.
40The redstone limit used while optimizing, in updates per chunk per second. Too low breaks clocks and farms until the server recovers.
The steps taken on every optimize run. Each one can be turned on or off separately.
trueRemove old dropped items, with the same protections as a normal sweep.
Remove mobs above the per-chunk limit. Named, tamed, leashed, ridden, villager, boss and never-remove mobs are never touched.
true0Mobs allowed per chunk for each kind. 0 = use the numbers from limits.categories.
trueSwitch to the lower redstone limit (optimizing-redstone-limit above) while optimizing.
Put mobs far away from every player to sleep until the server recovers. Off by default, because sleeping mobs do not react to anything.
false64Mobs further than this many blocks from the nearest player are put to sleep.
--- Redstone control ---
trueIs redstone allowed to work?
true = yes, redstone and pistons work normally. false = ALL redstone and pistons stop in the worlds listed below. Every machine on the server is frozen.
/redstone off and /redstone on change this live. Leave it true unless you really want that.
[]Which worlds the on/off switch above applies to, by name. [] = all worlds.
A speed limit for redstone. Each chunk may do only so many redstone updates per second. Past the limit, extra updates in that chunk are ignored until the next second.
falseOff by default, because it changes how big clocks and farms behave.
100Updates allowed per chunk per second. Too low breaks working machines, too high misses lag machines. Start at 100.
trueWrite a line to the console naming the busiest chunk when the limit is hit (at most once a minute)?
Chat messages. & colour codes and &#RRGGBB work. '' turns a message off. The %words% in a message are filled in by the plugin.
'&fEntities will be removed in �B5FF%seconds% &fseconds.'You can use: %seconds%
'&fEntities will be removed in �B5FF1 &fsecond.'Used when exactly one second is left. Empty = use the line above.
'&fA total of �B5FF%amount% &fentities were removed.'You can use: %amount%
'&fNext clear in �B5FF%time%&f.'Shown for /clearlag. You can use: %time% (like 4m 20s)
'&#FF5C5CYou are not allowed to do that.''GF521settings.yml reloaded.''&f%command% &7shows the time left, &f%command% now &7clears immediately.'You can use: %command%
'&#FFC247Server is struggling (TPS %tps%, %mspt% ms per tick). Optimizing.'--- Optimizer and redstone --- You can use: %tps% %mspt%
'DFFB0Server has recovered, temporary limits lifted.''&fRemoved �B5FF%items% &fitems and �B5FF%mobs% &fmobs, put �B5FF%asleep% &fmobs to sleep. Redstone limit: �B5FF%redstone%&f.'You can use: %items% %mobs% %asleep% %redstone%
'&fRemoved �B5FF%items% &fitems and �B5FF%mobs% &fmobs.'You can use: %items% %mobs%
'DFFB0Redstone is on.''&#FF4D6DRedstone is off. Nothing powered will change until you turn it back on.''&fRedstone �B5FF%state% &8| &fLimit per chunk �B5FF%limit% &8| &fOptimizing �B5FF%optimizing%'You can use: %state% %limit% %optimizing%
'&f/redstone �B5FFon&8, �B5FFoff&8, �B5FFstatus''&#FF5C5CThe bin belongs to a player, not to the console.'--- The bin ---
'&#FF5C5CThe bin is switched off on this server.''&fBinned �B5FF%amount% &fitems.'Shown when a private bin closes. You can use: %amount%
'&fThe bin was emptied - �B5FF%amount% &fitems gone.'Shown to everyone when a sweep empties the shared bin. Empty = stay quiet. You can use: %amount%
'&#FF4D6D%world% is not a world on this server.'--- /gc and /lagg --- You can use: %world%
'&#FF4D6DOnly a player can do that.''&f/lagg �B5FFcheck [world]&8, �B5FFchunks [world] [n]&8, �B5FFarea <radius> [-m]&8, �B5FFkillmobs [world] [-p]&8, �B5FFclear&8, �B5FFgc''&f/lagg area �B5FF<radius> [-m] &7removes items, arrows and orbs, and hostile mobs with -m.''all worlds''&fServer report''&fTPS &8(1m/5m/15m) &f%tps1% &8/ &f%tps5% &8/ &f%tps15%'The three values arrive already coloured. You can use: %tps1% %tps5% %tps15%
'&fMSPT &8(average) %mspt%''DFFB0'Colours for good, middling and bad values in the /lagg gc report, then the memory bar edges and its empty part.
'&#FFC247''&#FF4D6D''&8''&7''&fMemory %bar% �B5FF%used%&8/�B5FF%max% MB &8(%percent%%&8, &f%allocated% MB &7allocated&8)'You can use: %bar% %percent% %used% %max% %allocated%
'&fUptime �B5FF%uptime% &8| &fCPU cores �B5FF%cores%''�B5FF%world% &8| &f%chunks% &7chunks &8| &f%entities% &7entities &8| &f%tiles% &7tile entities &8| &f%players% &7players''&#FF4D6DManual GC is switched off. Set gc.allow-manual-gc to true if you really want it.''&fGC finished in �B5FF%ms%ms&f: �B5FF%before% MB &8-> DFFB0%after% MB &8(&f%freed% MB freed&8)'You can use: %before% %after% %freed% (all in MB) %ms%
'&fEntities in �B5FF%world% &8(&f%total%&8)'You can use: %world% %total%
'&8- &f%type% �B5FF%count%'You can use: %type% %count%
'&7Nothing to show.''&fBusiest chunks in �B5FF%scope%'You can use: %scope%
'&7Most entities''&7Most tile entities''&8%rank%. &f%world% &7%x%, %z% &8| �B5FF%count% &7%what%'Clicking it teleports staff with dclearlag.tp. You can use: %rank% %world% %x% %z% %count% %what%
'entities''tile entities''&fMSPT &8(lowest / worst / 95%) &f%min% &8/ &f%max% &8/ &f%p95%'--- Lag report and lag bars --- You can use: %min% %max% %p95% (already coloured)
'&fGC pauses &8(share of time) &f%percent%%'Time the JVM spent in garbage collection, as a share of real time. You can use: %percent%
'&fTrend &8(last 5 minutes)''&7Not enough samples yet, try again in a minute.''&fTPS DFFB0%graph% &8now &f%now%'You can use: %graph% %now%
'&fMSPT &#FFC247%graph% &8now &f%now%''&7Most hoppers''hoppers''&f/gc clear �B5FF[all|mobs|passive]''&#FFC247The server is struggling &8| &fTPS &#FFC247%tps% &8| &fMSPT &#FFC247%mspt%'Sent to staff with dclearlag.alerts. You can use: %tps% %mspt%
'&#FF4D6DThe server is in trouble &8| &fTPS &#FF4D6D%tps% &8| &fMSPT &#FF4D6D%mspt%''DFFB0The server has recovered &8| &fTPS DFFB0%tps%''�B5FFTPS &8| %tone%%padded% &8/ &720'Text of each lagbar. %tone% is the colour of the current state, %padded% is the number padded so it stays aligned, %value% the same without padding. Extra for the memory bar: %used% %max%.
'�B5FFMSPT &8| %tone%%padded% &7ms''�B5FFPING &8| %tone%%padded% &7ms''�B5FFRAM &8| %tone%%padded%%&8 | &7%used%&8/&7%max% MB''�B5FFENTITIES &8| %tone%%padded% &8| &7%chunks% chunks'' &8| 'The same, used when lagbar.compact is on. The separator goes between them.
'�B5FFTPS %tone%%value%''�B5FFMSPT %tone%%value%''�B5FFPING %tone%%value%''�B5FFRAM %tone%%value%%&7''�B5FFENT %tone%%value%''&f/lagbar �B5FF%kinds%&8, �B5FFall&8, �B5FFoff'You can use: %kinds% (the bars the player may use) or %bar%
'&fShowing the �B5FF%bar% &fbar.''&fHid the �B5FF%bar% &fbar.''&fShowing all your bars.''&fAll bars hidden.''&#FF5C5CBars are switched off on this server.''&7Click to teleport''&fTeleported to �B5FF%world% %x%, %z%&f.''&#FF4D6DThat chunk is not available.''&fRemoved �B5FF%amount% &fentities within �B5FF%radius% &fblocks.'You can use: %amount% %radius%
'&fRemoved �B5FF%amount% &fmobs in �B5FF%scope%&f.'You can use: %amount% %scope%
# Lag control: clears dropped items on a timer, a /bin, entity limits, an automatic optimizer and redstone control.# Edit, then run /clearlag reload. A setting you delete comes back with its default.# Help and support: https://discord.devamy.net or dstudios@devamy.net# Used by updates. Do not edit.config-version: 1# Language of the plugin's texts.# EN = English# FR = French# ES = Spanishlanguage: EN# Text shown in front of every chat message from this plugin.# Use '' for no prefix. & colour codes and &#RRGGBB work.prefix: '�B5FF&lCLEAR LAG &8| '# --- Sweeps ---# A sweep removes the things listed under "What gets removed" below, on a repeating timer.# How many seconds pass between two sweeps.# Example: 1800 = every 30 minutes, 600 = every 10 minutes. The lowest allowed is 30.interval-seconds: 1800# At which moments players get a warning, counted in seconds before the sweep.# Example: [30, 5, 4, 3, 2, 1] warns at 30 seconds left, then at each of the last 5 seconds.# The biggest number is when the countdown starts. Use [] to sweep with no warnings at all.warn-seconds-before: [30, 5, 4, 3, 2, 1]# --- Where messages appear ---# Warnings and results can go to chat, to the action bar (the text above the hotbar), or both.display:warnings:# Send each warning to chat?chat: true# Show each warning on the action bar?actionbar: false# Use this when chat is false but you still want the last few warnings in chat.# Example: 5 = the warnings of the final 5 seconds go to chat. 0 = none.chat-final-seconds: 0# Show a live countdown on the action bar for this many seconds before the sweep.# Example: 10 = a countdown from 10 to 0 above the hotbar. 0 = no countdown.actionbar-countdown-from: 0# What about players who muted the messages (permission in mute-permission below)?# true = they still see the action bar countdown, so a sweep never surprises them.# false = they see nothing.actionbar-ignore-mute: false# The "sweep complete" and "bin emptied" lines shown after a sweep.results:chat: trueactionbar: false# --- Sound ---sounds:# The sound played at every warning. Muted players do not hear it.# sound = a Minecraft sound name such as entity.experience_orb.pickup. '' = no sound.# volume = 1.0 is normal, lower is quieter.# pitch = 1.0 is normal, higher is sharper.warning:sound: ''volume: 0.8pitch: 1.2# --- What gets removed ---# Pick which kinds of things a sweep deletes. true = removed, false = left alone.clear:# Items lying on the ground.dropped-items: true# Arrows stuck in the ground or flying.arrows: true# Experience orbs.experience-orbs: true# Also remove mobs?# true = animals and monsters are removed too (see the `creatures:` section for what is spared).# false = mobs are left alone (recommended). A sweep that takes someone's horse costs more trust than it saves.# Named, tamed, leashed, ridden, villager and boss mobs are never removed either way.creatures: false# Keep dropped items that have a custom name (renamed in an anvil)?keep-named-items: true# Keep dropped enchanted items?# true = they stay on the ground forever (can pile up).# false = they are removed, but grace-seconds below gives owners time to pick up their gear.keep-enchanted-items: false# Items made by these plugins are never removed. This protects special items like custom tools and keys.# Write a plugin name in lowercase to protect all its items, or name:key to protect one kind only.# Items from the Devamy plugins (drills, sell axes, crate keys) are always kept.keep-tagged-items:- dtools- ditems- dcrates- dkits- dspawners- 'devamy:sell_axe_uses'# Item types that are never removed, written as Minecraft material names (capital letters).# A * matches any part of the name: '*SHULKER_BOX' keeps every colour of shulker box.keep-materials:- '*SHULKER_BOX'- DRAGON_EGG- DRAGON_HEAD- ELYTRA- BEACON- NETHER_STAR- TOTEM_OF_UNDYING- ENCHANTED_GOLDEN_APPLE- HEAVY_CORE- MACE- TRIDENT- SPAWNER- TRIAL_KEY- OMINOUS_TRIAL_KEY# How many seconds a new drop is safe from a sweep after it lands.# This lets a player who just died run back and pick up their things. Example: 10 = ten seconds. 0 = off.grace-seconds: 10# --- Mobs ---# Only matters when clear.creatures is true.creatures:# Mobs within this many blocks of any player are left alone, so a sweep does not clear the farm# someone is standing in. Example: 16 = mobs up to 16 blocks away are safe. 0 = off.keep-near-players: 16# Mob types that are never removed, on top of the ones that are always spared.# Write Minecraft entity names in capital letters.never-remove:- IRON_GOLEM- SNOW_GOLEM- ALLAY- AXOLOTL# Which worlds a sweep cleans, written as folder names. [] = every world.# Example:# worlds:# - world# - world_netherworlds: []# Players with this permission do not see the sweep messages and warnings.# The settings menu uses it as an on/off switch for each player.mute-permission: 'dclearlag.mute'# --- The bin ---# /bin opens a chest-like menu where players throw away things they do not want. Nothing is saved to disk.bin:# Is /bin available?enabled: true# Does everyone share one bin?# false = each player has their own bin. Whatever is inside is deleted when they close it.# true = one bin for the whole server that anyone can open. The next sweep empties it.shared: false# Height of the bin menu in rows, 1 to 6 (each row holds 9 items).rows: 6# Title shown at the top of the bin.title: '&8Bin'# Text shown in front of the messages from /gc and /lagg.lag-prefix: '�B5FF&lLAG &8| '# --- Manual tools ---# Commands for admins (permission dclearlag.admin).gc:# Can admins run /lagg gc to force a memory cleanup (garbage collection)?# true = yes.# false = no (recommended). It rarely helps and can freeze the server for a moment.allow-manual-gc: falsearea:# The biggest radius, in blocks, that /lagg area accepts. A bigger number is cut down to this.max-radius: 128# --- Lag monitor ---# Watches TPS (ticks per second, 20 is perfect) and MSPT (milliseconds per tick, under 50 is fine) in the# background. It feeds /gc, /gc trend, the lagbar bossbars and the %dclearlag_...% placeholders.# On Folia the server has no single TPS, so those values show n/a and only memory and counts are shown.lag-monitor:# How often a sample is taken for the /gc trend graph. A sample is cheap. The trend keeps 60 samples,# so 5 seconds covers the last 5 minutes.sample-seconds: 5# Below warn the server counts as struggling, below critical as in trouble.tps:warn: 17.0critical: 12.0# Above warn the server counts as struggling, above critical as in trouble.mspt:warn: 45.0critical: 70.0# Tells staff with dclearlag.alerts in chat when the server gets worse, and again when it recovers.alerts:enabled: false# While the lag lasts you are reminded at most this often.cooldown-seconds: 120# Runs one clear (the same as /clearlag now) when the server is in critical lag.auto-clear:enabled: false# Never clears more often than this, so a long lag spike does not clear again and again.cooldown-seconds: 600# --- Lag bars ---# /lagbar shows live numbers in a bossbar at the top of the screen. Each player picks their own bars and# the choice is remembered. Who may use which bar is set by the permissions dclearlag.lagbar.tps, .mspt,# .ping, .ram and .entities.lagbar:enabled: true# How often the bars refresh, in ticks (20 ticks are 1 second). Lower than 10 is rarely worth it.update-ticks: 20# true = one bossbar that shows every bar a player picked on one line.# false = one bossbar per pick, stacked.compact: false# Bossbar look: PROGRESS (solid), NOTCHED_6, NOTCHED_10, NOTCHED_12 or NOTCHED_20.style: PROGRESS# The value at which a bar is completely full.full-scale:ping: 300entities: 5000# Green up to good, yellow up to warn, red above. TPS is the other way round: green from good up.thresholds:tps:good: 18.0warn: 15.0mspt:good: 35.0warn: 50.0ping:good: 80warn: 150ram:good: 70warn: 85entities:good: 2500warn: 4000# --- Database ---# Where DClearLag keeps each player's chosen lagbar bossbars. With type default it follows the database set in DCore's config.yml: by default a# SQLite file at plugins/DClearLag/data/lagbars.db, which needs nothing installed, or the shared mysql or mariadb database on a# network. The first start on this version moves the old yml data files into the database by itself, after copying# them to plugins/DClearLag/backups/legacy-<date>. Changes here need a restart; /dclearlag reload does not apply them.database:# default follows DCore. Set sqlite, h2, mysql or mariadb only if DClearLag should use its own database instead.type: 'default'# The file name inside plugins/DClearLag, used when the type is sqlite or h2 (or default on a single server).file: 'data/lagbars.db'# A full jdbc:mariadb:// or jdbc:mysql:// address. When you fill it in, it wins over host, port and database below.url: ''# The database server, used only when the type is mysql or mariadb.host: 'localhost'port: 3306database: 'minecraft'username: ''password: ''# Extra connection parameters added to the address, for example useSSL=false. Leave empty if you are unsure.parameters: ''# Every table of DClearLag starts with this text. Use only a-z, 0-9 and _. Two servers that share a database# must use the same value.table-prefix: 'dclearlag_'# --- Entity limits ---# Stops one chunk (a 16x16 block column of the world) from filling up with entities.# When a chunk is at its limit, new ones are simply not created. Existing entities are never removed.# Named, tamed, leashed, ridden, villager and boss mobs are not counted.# Spawns from commands, spawn eggs, dispensers and golem builds always work.limits:# Turn all entity limits on or off.enabled: true# Players with this permission ignore the limit for the items they drop and the arrows they shoot.# The old name dclearlag.limits.bypass still works too.bypass-permission: 'dclearlag.bypass.limits'# The most entities allowed in one chunk, for each kind. 0 = no limit for that kind.# Example: hostile: 80 = a chunk holds at most 80 monsters, more spawns are cancelled.categories:items: 200xp-orbs: 100arrows: 60hostile: 80passive: 60minecarts: 20armor-stands: 40boats: 30# Use different numbers in one world, by world name. Any kind you leave out uses the numbers above.# Example:# worlds:# farms:# hostile: 200worlds: {}# Worlds where the limits do not apply at all, by name. [] = limits work in every world.disabled-worlds: []# Limits how many mobs spawners can produce in one chunk, so a pile of spawners cannot lag it.# Off by default because it changes how spawners behave.spawner-guard:enabled: false# Most mobs the spawners of one chunk may have alive at once. Example: 40.max-per-chunk: 40# --- Automatic optimizer ---# Watches how fast the server runs. When it is slow for a few checks in a row, it takes steps to# help (listed under `steps`), and when the server is healthy again it undoes the temporary ones.# TPS is how many ticks the server runs per second (20 is perfect). MSPT is how many milliseconds one tick takes.# Off by default. Does nothing on Folia.auto-optimize:enabled: false# The server counts as struggling when its TPS drops below this. Example: 18.0.tps-threshold: 18.0# It also counts as struggling when one tick takes longer than this many milliseconds.# 50 is the point where TPS starts to fall, so 45 reacts a little early.mspt-limit: 45.0# The server counts as healthy again when TPS is at least this ...recover-tps: 19.5# ... and one tick takes at most this many milliseconds.# Keep both stricter than the two settings above, or the optimizer will switch on and off all the time.recover-mspt: 40.0# Seconds between two speed checks.check-seconds: 5# How many bad checks in a row before it starts (and good checks in a row before it stops).# With the defaults, 3 checks of 5 seconds = about 15 seconds.trigger-after-checks: 3# The least number of seconds between two optimize runs.cooldown-seconds: 60# Tell staff and the console when it starts and stops?notify: true# Who gets that message.# The old name dclearlag.notify still works too.notify-permission: 'dclearlag.alerts'# The redstone limit used while optimizing, in updates per chunk per second.# Too low breaks clocks and farms until the server recovers.optimizing-redstone-limit: 40# The steps taken on every optimize run. Each one can be turned on or off separately.steps:# Remove old dropped items, with the same protections as a normal sweep.clear-items: true# Remove mobs above the per-chunk limit.# Named, tamed, leashed, ridden, villager, boss and never-remove mobs are never touched.remove-excess-mobs:enabled: true# Mobs allowed per chunk for each kind. 0 = use the numbers from limits.categories.max-per-chunk: 0# Switch to the lower redstone limit (optimizing-redstone-limit above) while optimizing.lower-redstone-limit: true# Put mobs far away from every player to sleep until the server recovers.# Off by default, because sleeping mobs do not react to anything.disable-far-mob-ai:enabled: false# Mobs further than this many blocks from the nearest player are put to sleep.distance: 64# --- Redstone control ---redstone:# Is redstone allowed to work?# true = yes, redstone and pistons work normally.# false = ALL redstone and pistons stop in the worlds listed below. Every machine on the server is frozen.# /redstone off and /redstone on change this live. Leave it true unless you really want that.enabled: true# Which worlds the on/off switch above applies to, by name. [] = all worlds.worlds: []# A speed limit for redstone. Each chunk may do only so many redstone updates per second.# Past the limit, extra updates in that chunk are ignored until the next second.limit:# Off by default, because it changes how big clocks and farms behave.enabled: false# Updates allowed per chunk per second. Too low breaks working machines, too high misses lag machines.# Start at 100.per-chunk-per-second: 100# Write a line to the console naming the busiest chunk when the limit is hit (at most once a minute)?notify: true# Chat messages. & colour codes and &#RRGGBB work. '' turns a message off.# The %words% in a message are filled in by the plugin.messages:# You can use: %seconds%warning: '&fEntities will be removed in �B5FF%seconds% &fseconds.'# Used when exactly one second is left. Empty = use the line above.warning-one: '&fEntities will be removed in �B5FF1 &fsecond.'# You can use: %amount%cleared: '&fA total of �B5FF%amount% &fentities were removed.'# Shown for /clearlag. You can use: %time% (like 4m 20s)next: '&fNext clear in �B5FF%time%&f.'no-permission: '&#FF5C5CYou are not allowed to do that.'reloaded: 'GF521settings.yml reloaded.'# You can use: %command%usage: '&f%command% &7shows the time left, &f%command% now &7clears immediately.'# --- Optimizer and redstone ---# You can use: %tps% %mspt%optimize-enter: '&#FFC247Server is struggling (TPS %tps%, %mspt% ms per tick). Optimizing.'optimize-leave: 'DFFB0Server has recovered, temporary limits lifted.'# You can use: %items% %mobs% %asleep% %redstone%optimize-report: '&fRemoved �B5FF%items% &fitems and �B5FF%mobs% &fmobs, put �B5FF%asleep% &fmobs to sleep. Redstone limit: �B5FF%redstone%&f.'# You can use: %items% %mobs%optimize-done: '&fRemoved �B5FF%items% &fitems and �B5FF%mobs% &fmobs.'redstone-on: 'DFFB0Redstone is on.'redstone-off: '&#FF4D6DRedstone is off. Nothing powered will change until you turn it back on.'# You can use: %state% %limit% %optimizing%redstone-status: '&fRedstone �B5FF%state% &8| &fLimit per chunk �B5FF%limit% &8| &fOptimizing �B5FF%optimizing%'redstone-usage: '&f/redstone �B5FFon&8, �B5FFoff&8, �B5FFstatus'# --- The bin ---bin-players-only: '&#FF5C5CThe bin belongs to a player, not to the console.'bin-disabled: '&#FF5C5CThe bin is switched off on this server.'# Shown when a private bin closes. You can use: %amount%bin-binned: '&fBinned �B5FF%amount% &fitems.'# Shown to everyone when a sweep empties the shared bin. Empty = stay quiet. You can use: %amount%bin-cleared: '&fThe bin was emptied - �B5FF%amount% &fitems gone.'# --- /gc and /lagg ---# You can use: %world%unknown-world: '&#FF4D6D%world% is not a world on this server.'players-only: '&#FF4D6DOnly a player can do that.'lagg-usage: '&f/lagg �B5FFcheck [world]&8, �B5FFchunks [world] [n]&8, �B5FFarea <radius> [-m]&8, �B5FFkillmobs [world] [-p]&8, �B5FFclear&8, �B5FFgc'area-usage: '&f/lagg area �B5FF<radius> [-m] &7removes items, arrows and orbs, and hostile mobs with -m.'scope-all: 'all worlds'gc-title: '&fServer report'gc-unavailable: '&7n/a'# The three values arrive already coloured. You can use: %tps1% %tps5% %tps15%gc-tps: '&fTPS &8(1m/5m/15m) &f%tps1% &8/ &f%tps5% &8/ &f%tps15%'gc-mspt: '&fMSPT &8(average) %mspt%'# Colours for good, middling and bad values in the /lagg gc report, then the memory bar edges and its empty part.tone-good: 'DFFB0'tone-warn: '&#FFC247'tone-bad: '&#FF4D6D'gc-bar-edge: '&8'gc-bar-empty: '&7'# You can use: %bar% %percent% %used% %max% %allocated%gc-memory: '&fMemory %bar% �B5FF%used%&8/�B5FF%max% MB &8(%percent%%&8, &f%allocated% MB &7allocated&8)'gc-uptime: '&fUptime �B5FF%uptime% &8| &fCPU cores �B5FF%cores%'gc-world: '�B5FF%world% &8| &f%chunks% &7chunks &8| &f%entities% &7entities &8| &f%tiles% &7tile entities &8| &f%players% &7players'gc-disabled: '&#FF4D6DManual GC is switched off. Set gc.allow-manual-gc to true if you really want it.'# You can use: %before% %after% %freed% (all in MB) %ms%gc-manual: '&fGC finished in �B5FF%ms%ms&f: �B5FF%before% MB &8-> DFFB0%after% MB &8(&f%freed% MB freed&8)'# You can use: %world% %total%check-header: '&fEntities in �B5FF%world% &8(&f%total%&8)'# You can use: %type% %count%check-line: '&8- &f%type% �B5FF%count%'check-empty: '&7Nothing to show.'# You can use: %scope%chunks-header: '&fBusiest chunks in �B5FF%scope%'chunks-entities-title: '&7Most entities'chunks-tiles-title: '&7Most tile entities'# Clicking it teleports staff with dclearlag.tp. You can use: %rank% %world% %x% %z% %count% %what%chunks-line: '&8%rank%. &f%world% &7%x%, %z% &8| �B5FF%count% &7%what%'what-entities: 'entities'what-tiles: 'tile entities'# --- Lag report and lag bars ---# You can use: %min% %max% %p95% (already coloured)gc-mspt-detail: '&fMSPT &8(lowest / worst / 95%) &f%min% &8/ &f%max% &8/ &f%p95%'# Time the JVM spent in garbage collection, as a share of real time. You can use: %percent%gc-gc: '&fGC pauses &8(share of time) &f%percent%%'gc-trend-title: '&fTrend &8(last 5 minutes)'gc-trend-empty: '&7Not enough samples yet, try again in a minute.'# You can use: %graph% %now%gc-trend-tps: '&fTPS DFFB0%graph% &8now &f%now%'gc-trend-mspt: '&fMSPT &#FFC247%graph% &8now &f%now%'chunks-hoppers-title: '&7Most hoppers'what-hoppers: 'hoppers'lag-clear-usage: '&f/gc clear �B5FF[all|mobs|passive]'# Sent to staff with dclearlag.alerts. You can use: %tps% %mspt%lag-alert-warn: '&#FFC247The server is struggling &8| &fTPS &#FFC247%tps% &8| &fMSPT &#FFC247%mspt%'lag-alert-critical: '&#FF4D6DThe server is in trouble &8| &fTPS &#FF4D6D%tps% &8| &fMSPT &#FF4D6D%mspt%'lag-recovered: 'DFFB0The server has recovered &8| &fTPS DFFB0%tps%'# Text of each lagbar. %tone% is the colour of the current state, %padded% is the number padded so it stays# aligned, %value% the same without padding. Extra for the memory bar: %used% %max%.bar-tps: '�B5FFTPS &8| %tone%%padded% &8/ &720'bar-mspt: '�B5FFMSPT &8| %tone%%padded% &7ms'bar-ping: '�B5FFPING &8| %tone%%padded% &7ms'bar-ram: '�B5FFRAM &8| %tone%%padded%%&8 | &7%used%&8/&7%max% MB'bar-entities: '�B5FFENTITIES &8| %tone%%padded% &8| &7%chunks% chunks'# The same, used when lagbar.compact is on. The separator goes between them.bar-compact-separator: ' &8| 'bar-compact-tps: '�B5FFTPS %tone%%value%'bar-compact-mspt: '�B5FFMSPT %tone%%value%'bar-compact-ping: '�B5FFPING %tone%%value%'bar-compact-ram: '�B5FFRAM %tone%%value%%&7'bar-compact-entities: '�B5FFENT %tone%%value%'# You can use: %kinds% (the bars the player may use) or %bar%lagbar-usage: '&f/lagbar �B5FF%kinds%&8, �B5FFall&8, �B5FFoff'lagbar-on: '&fShowing the �B5FF%bar% &fbar.'lagbar-toggled-off: '&fHid the �B5FF%bar% &fbar.'lagbar-all: '&fShowing all your bars.'lagbar-off: '&fAll bars hidden.'lagbar-disabled: '&#FF5C5CBars are switched off on this server.'# Shown in the lagbar menu as %state_tps% and so on.menu-state-on: 'DFFB0ON'menu-state-off: '&#FF5C5COFF'menu-state-locked: '&7LOCKED'chunks-hover: '&7Click to teleport'tp-done: '&fTeleported to �B5FF%world% %x%, %z%&f.'tp-failed: '&#FF4D6DThat chunk is not available.'# You can use: %amount% %radius%area-done: '&fRemoved �B5FF%amount% &fentities within �B5FF%radius% &fblocks.'# You can use: %amount% %scope%killmobs-done: '&fRemoved �B5FF%amount% &fmobs in �B5FF%scope%&f.'
DCore
PlaceholderAPI.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.