CatClearLag - A plugin to assist in removing lag from your server


#1

This is a discussion topic for the Ore project, CatClearLag. View the full project on Ore for downloads and more information.


CatClearLag

A recreation of clearlag for the SpongeAPI.
Tested on both api 5 and 6.

Discord: https://discord.gg/yUJc9G7

Commands

/re <hostiles|all|living|xp> - Remove various types of entities.
/forcegc - Request garbage collection.
/laggychunks <tiles|entities> - Find the chunks with the most entities or tiles.
/unloadchunks - Unload all chunks.
/clwhitelist - Add an item to the item whitelist.

Permissions:

catclearlag.command.removehostile - Use /re host.
catclearlag.command.removeentities - Use /re.
catclearlag.command.removeall - Use /re a.
catclearlag.command.removegitems - Use /re items.
catclearlag.command.forcegc - Use /forcegc.
catclearlag.command.laggychunks - Use /laggychunks.
catclearlag.command.unloadchunks - Use /unloadchunks.
catclearlag.command.whitelistitem - Use /clwhitelist.

Soon

  • Halt all server activity.

These 1.10.2 Plugins for Sponge
#2

A new version has been released for CatClearLag, it is available for download here.


  • updated for api 7

#3

A new version has been released for CatClearLag, it is available for download here.


Fixes a few bugs.


#4

Thank you very much for your work!


#5

Oops…
Whitelist don’t work in API7
Whitelist=[
“minecraft:diamond”,
“minecraft:diamond_block”,
“minecraft:beacon”
]
deleting all items: diamond, diamond_block and beacon


#6

Hi, could you check the github issues about hostile removals please ? (xp orbs)
Thanks, have a nice day !


#7

A new version has been released for CatClearLag, it is available for download here.


  • Fixes entity whitelist
  • Fixes NPE during XP Orb check
  • Fixes a bunch of other stuff

#8

It seems that it ignores shulkerboxes that are whitelisted and clears them anyway whether they have items inside or not. The other items in the list are fine.

Whitelist=[
“pixelmon:exp_all”,
“pixelmon:orb”,
“pixelmon:uno_orb”,
“pixelmon:dos_orb”,
“pixelmon:tres_orb”,
“pixelmon:red_chain”,
“pixelmon:master_ball”,
“pixelmon:park_ball”,
“pixelmon:rare_candy”,
“minecraft:emerald”,
“pixelmon:crystal”,
“pixelmon:stone_badge”,
“pixelmon:balance_badge”,
“pixelmon:dynamo_badge”,
“pixelmon:heat_badge”,
“pixelmon:wave_badge”,
“pixelmon:jet_badge”,
“pixelmon:psychic_badge”,
“minecraft:white_shulker_box”,
“minecraft:orange_shulker_box”,
“minecraft:magenta_shulker_box”,
“minecraft:light_blue_shulker_box”,
“minecraft:yellow_shulker_box”,
“minecraft:lime_shulker_box”,
“minecraft:pink_shulker_box”,
“minecraft:gray_shulker_box”,
“minecraft:silver_shulker_box”,
“minecraft:cyan_shulker_box”,
“minecraft:purple_shulker_box”,
“minecraft:blue_shulker_box”,
“minecraft:brown_shulker_box”,
“minecraft:green_shulker_box”,
“minecraft:red_shulker_box”,
“minecraft:black_shulker_box”
]


#9

A new version has been released for CatClearLag, it is available for download here.


  • The remove command is now flags instead of subcommands, use /re to find out what all the different flags do.
  • If the warning message if over 60 seconds, it will now print a new minutes message instead.
  • /cwl should work better, but it is still recommended to edit the config.
  • Items like AE2 seeds should be whitelistable now.
  • Lots of internal reworking.
  • There is also a new section of the config called live time, which is the amount of seconds an entity has to be on the ground before it gets removed. This only applied to items dropped by players, any other items will be removed as normal.
  • You can now set the removal interval to -1 to disable it.
  • Redo the messages config to make it easier to edit.

#10

Hey could you check your code, when it goes to clear thing, inside the chat box in stead of say [Clear Lag] {count} Items have been cleared. It will say something like this instead:

{color=dark_purple, extra=[{text=[ClearLag] }], text=}{closeArg=}, content={extra=[{text=[ClearLag] }, {color=white, text={count}}, {text= items have been cleared.}], color=red, text=}, openArg={, arguments={count={optional=false}}, options={closeArg=}, openArg={}}

Just thought i would let you know.


#11

Does this remove items automatically or do you have to type it in manually every time? I’ve seen some servers where it says “clearing items on ground in 1 minute” and does it all automatic.


#12

What would be the best method for disabling the in game ground clear warnings?


#13

Hi
I use sponge forge for 2 reasons.

  1. More options for server performance.
  2. To be able to use your CatClearLag plugin.

Now my question is how can I stop players on my server to access your plugin commands?

Thanks for the awesome Plugin!


#14

Your players can’t use the plugin commands if you don’t give them the permission nodes.


#15

You have obviously not used sponge forge before…


#16

It appears you havent lmao
I know Snow has, and I have as well. Means you have given your players op perms and thats why they can use the commands
Or your permissions plugin is setup wrong


#17

Using a forge permission mod. Because no sponge permission plugin sees any forge mod perms.
I read that sponge plugins perms can be written to be seen in forge.
That is were I was going with my conversation.


#18

What permission mod are you using? Maybe the group can,help resolve your issue if more information is given


#19

Use LuckPerms it can detect forge perms.