ClearLagg

Main

l

Clearlag was designed to reduce lagg on Bukkit/Spigot servers by removing entities, and preventing it through it's many optional features. Of course this plugin can't fix all lag, but it does clear most of it. If your using a larger server with 20+ players, simply using the /lagg clear command can drastically decrease RAM/CPU usage by simply removing your configured entities.


  • Permission support
  • Entity limiter
  • Reduces lag
  • Decreasing RAM/CPU usage
  • Ability to stop a TNT chain reaction
  • Option to limit mob spawners
  • Locate overcrowded/abused chunks
  • Many easy to use commands
  • Real-time module controls
  • Very lightweight - only enables selected features
  • Remove old logs upon enabling server
  • Limit AI processing attributes
  • Console support for most commands
  • Can adjust times when the server is cleared of lagg
  • Completely configurable


CommandDescriptionPermission
/lagg clear(Clears entities)lagg.clear
/lagg check(Counts all entities)lagg.check
/lagg reload(Reloads schedulers/config)lagg.reload
/lagg killmobs(Kills mobs)lagg.killmobs
/lagg area <radius>(Removes entities within given radius)lagg.area
/lagg unloadchunks(Unloads un-needed chunks)lagg.unloadchunks
/lagg chunk(Locate possible laggy chunks)lagg.chunk
/lagg tpchunk <x> <z> <world>(Teleport to chunks)lagg.tpchunk
/lagg admin(Manage clearlag's modules)lagg.admin
/lagg gc(Attempt to free memory)lagg.gc
/lagg tps(View current TPS)lagg.tps
/lagg halt(Temporary disable basic server functions [mob spawning and so on])lagg.halt
/lagg(Shows helpful page)lagg.help


NameDescriptionLink
SaveDeathDrops(Blocks clearlag from removing items dropped from death)Download Link


Helpful video made by cobwebster


Still have a question?

If you are having issues or cannot get the plugin to function properly, feel free to open a ticket, explaining your problem in detail will help me help you!

(-Config setup-)

[Please note]

This plugin contains an auto-updater which will request, or download, updated files of Clearlag directly from this page. To disable this feature, open the config.yml, under plugins/Clearlag, and set auto-update to false.

Please do not post an issue until you've fully read the config located under /plugins/Clearlag/config.yml

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of bob7l bob7l Jul 02, 2015 at 22:48 UTC - 0 likes

    @frednotflinstone: Go

    Your config has YAML errors, so it's not being read.

    http://codebeautify.org/yaml-validator

    Run it through that, and fix it.

    Here is a fixed version of your config for you: http://pastebin.com/m4M9GJAu

    Also learn basic YAML stuff. You appear to be using # in front of some of your values for whatever reason. # toggles whether or not the line is a comment.

    Last edited Jul 02, 2015 by bob7l

    Open for custom plugins! Skype: bob7l.bob7l.bob7l

  • Avatar of frednotflinstone frednotflinstone Jul 02, 2015 at 19:38 UTC - 0 likes
    #--------------------------------------------------------------------#
    #                   ClearLag Configuration File                      #
    #--------------------------------------------------------------------#
    # Configure to your liking, reload the config by tying: /lagg reload #
    #                                -                                   #
    #        Here is a helpful tutorial on this configuration setup!     #
    #   http://dev.bukkit.org/server-mods/clearlagg/pages/config-setup/  #
    #--------------------------------------------------------------------#
    #                     All possible mob names                         #
    # http://dev.bukkit.org/server-mods/clearlagg/pages/mob-types/nodes/ #
    #--------------------------------------------------------------------#
    settings:
      auto-update: true
      enable-signs: true
      config-version: 3
      disable-waterlife: true
      keep-spawn-in-memory: true
      enable-api: true
      
    #Should clearlag purge logs under /logs when the server starts?
    # -- days-old means how many days old can the log be to be deleted
    log-purger:
      enabled: false
      days-old: 3
      
    #What type of entities SHOULD NOT be removed while doing /lagg area?
    area-filter:
        - Itemframe
        - Painting
        - Wolf
        - Villager
        - Horse
        - ARMOR_STAND
    	- Minecart
    	
    
    #Should clearlag reset the config (more stable), or attempt to add the new paths into your config?
    # -- Puting this as false wont reset your config, but may cause bugs.. Still in testing!
    config-updater:
      force-update: false
     
    #This limits the mob egg spawners so players cannot "overload" the server with them
    # -- 'check-radius' stands for the radius clearlag will check for nearby entities
    # -- 'max-mobs' is how many entities may be in the radius before the spawning is blocked
    mobegg-limiter:
      enabled: false
      check-radius: 8
      max-mobs: 5
     
    #Disable new chunk generation, or just put a cap on how many can load at once.
    # -- THIS DOES NOT WORK WITH 1.6.4!
    chunk-limiter:
      enabled: false
      limit: 6000
      create-new-chunks: true
     
    #This modifies not only the view of the mobs, but will also simplify how they spawn
    # -- Lower it is, the better your entity tick will be
    # -- If it's too high, expect bugs / lots of lag
    mob-range:
      enabled: false
      zombie: 30
      skeleton: 30
      creeper: 20
     
    #How long should items/Mobs be left on the ground
    # -- Goes by seconds
    live-time:
      enabled: false
      interval: 10
      mobtimer: true
      itemtimer: true
      arrowtimer: true
      arrowkilltime: 15
      moblivetime: 600
      itemlivetime: 240
     
    #Let clearlag control the spawning in ALL worlds? (Supports all plugins!)
    # -- This will also respect cancelations, unlike minecraft's native code
    custom-mobspawner:
      enabled: false
    #How many times should clearlag attempt to find a safe location for the mob to spawn
      max-tries: 50
    #(In seconds) how often should clearlag try to spawn mobs?
      interval: 30
    #This is the radius around the player
      radius: 30
    #This is the radius FROM the player (in blocks!)
      radius-from: 7
    #How far should mobs spawn from eachother (NOT in blocks!!) (1,010 = around 10-20 blocks)
      mob-radius: 1010
    #Should we keep trying to spawn a mob if a clear location isn't found
      forcespawn: false
    #4 = nighttime, what light level should mobs spawn in
      lightlevel: 4
    #Chance mobs will have armor/sword, 1 being diamond every time
      armor-chance: 30 
      mobs: #More types of a mob, more likely it'll spawn(ONLY IN NORMAL WORLDS!)
        - zombie 5
        - skeleton 3
        - creeper
        - enderman
      animals: #More types of a mob, more likely it'll spawn(ONLY IN NORMAL WORLDS!)
        - pig 4
        - sheep 1
        - cow 6
        - chicken 2
      
    #This option disallows the placement of too many tnt-minecarts
    tnt-minecart:
      enabled: false
      max: 2
      radius: 6
      
    #This option reduces global dispenser rate
    dispenser-reducer:
      enabled: false
      time: 100
      
    #This option reduces the explosions of mass amounts of tnt, and reduces tnt lag
    tnt:
      tnt-reducer: false
      
    #This option reduces fire spread rate
    firespread-reducer:
      enabled: false
      time: 2000
      
    #How many entities should one chunk be allowed to hold?
    chunk-entity-limiter:
      enabled: false
      limit: 40
      
    spawn-limiter:
      enabled: false
      interval: 15
      monsters: 300
      animals: 300
      
    #Meters your TPS, if it goes to low, run the commands you wrote below!
    tps-meter:
      enabled: false
      interval: 15 
      tps-trigger: 14.0
      commands:
        - 'lagg killmobs'
        - 'lagg clear'
      
    #This is /lagg killmobs, put what you DON'T want removed! 
    kill-mobs:
       disable-build-wither: false 
       mob-filter:
       - Villager
       - Wolf
       - ARMOR_STAND
       - Horse
      
    #This takes care of mob spawners
    # -- max-spawn is the max entities that can be within the check-radius
    mobspawner:
      enabled: false
      max-spawn: 4
      check-radius: 15
      
    #No longer bugged! -- Dont use if you have CB++ or Spigot!
    item-merger:
      enabled: false
      radius: 6
      
    #Auto-removal options
    # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
    # -- NOTE: The below 'remove' section applies to this remover!
    # -- NOTE: Putting the interval to low will cause issues!
    auto-removal:
      broadcast-message: '&6[ClearLag] &aRemoved +RemoveAmount Entities!'
      broadcast-warning: true
      enable-scheduler: true
      autoremoval-interval: 200
      warnings:
            - time:400 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!
            - time:440 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!
      
    #What should be removed during an auto-removal
    remove:
      world-filter:
        - this_world
      broadcast-removal: true
      boat: false
      falling-block: true
      experienceOrb: false
      painting: false
      projectile: false
      item: true
      itemframe: false
      minecart: false
      primed-tnt: true
      arrow: true
      snowball: true
      fireball: true
      ender-signal: false
      item-filter:
      # - 264
      # - 265
      # - 311
      # - 312
      # - 266
      # - 328
      # - 342
      # - 343
      # - 407
      # - 408
      # - 15
      # - 14
      # - 16
      # - 21
      # - 56
      # - 73
      # - 129
      # - 265
      # - 266
      # - 264
      # - 129
      # - 310
      # - 311
      # - 312
      # - 313
      remove-mobs:
      # - cow
     
    #What should be removed during /lagg clear 
    command-remove:
      world-filter:
        - this_world
     broadcast-removal: false
      boat: false
      falling-block: true
      experienceOrb: false
      painting: false
      projectile: false
      item: true
      itemframe: false
      minecart: false
      primed-tnt: true
      arrow: true
      snowball: true
      fireball: true
      ender-signal: false
      item-filter:
       # - 264
      # - 265
      # - 311
      # - 312
      # - 266
      # - 328
      # - 342
      # - 343
      # - 407
      # - 408
      # - 15
      # - 14
      # - 16
      # - 21
      # - 56
      # - 73
      # - 129
      # - 265
      # - 266
      # - 264
      # - 129
      # - 310
      # - 311
      # - 312
      # - 313
      
      remove-mobs:
      # - cow
       
    check:
      world-filter:
        - this_world
     broadcast-removal: false
      boat: false
      falling-block: true
      experienceOrb: false
      painting: false
      projectile: false
      item: true
      itemframe: false
      minecart: false
      primed-tnt: true
      arrow: true
      snowball: true
      fireball: true
      ender-signal: false
      item-filter:
       # - 264
      # - 265
      # - 311
      # - 312
      # - 266
      # - 328
      # - 342
      # - 343
      # - 407
      # - 408
      # - 15
      # - 14
      # - 16
      # - 21
      # - 56
      # - 73
      # - 129
      # - 265
      # - 266
      # - 264
      # - 129
      # - 310
      # - 311
      # - 312
      # - 313
      
      mobs:
        creature: true
        animals: true
        monster: true
       
    limit:
      enable-limit: true
      max: 200
      check-interval: 10
      broadcast-message: '&6[ClearLag] &aLimit reached, removed +RemoveAmount Entities!'
      world-filter:
        - this_world
     broadcast-removal: false
      boat: false
      falling-block: true
      experienceOrb: false
      painting: false
      projectile: false
      item: true
      itemframe: false
      minecart: false
      primed-tnt: true
      arrow: true
      snowball: true
      fireball: true
      ender-signal: false
      item-filter:
       # - 264
      # - 265
      # - 311
      # - 312
      # - 266
      # - 328
      # - 342
      # - 343
      # - 407
      # - 408
      # - 15
      # - 14
      # - 16
      # - 21
      # - 56
      # - 73
      # - 129
      # - 265
      # - 266
      # - 264
      # - 129
      # - 310
      # - 311
      # - 312
      # - 313
    

    This is what my current config looks like and whenever I use the /lagg clear command, the minecarts or any filtered items disappear as well. Tell me what I am doing wrong please.

  • Avatar of bob7l bob7l Jun 28, 2015 at 21:01 UTC - 1 like

    @Grimwiire: Go

    You probably didn't FULLY read the config. Setting a single minecart to false doesn't make all the clear types ignore the minecart

    s

  • Avatar of Grimwiire Grimwiire Jun 28, 2015 at 18:27 UTC - 0 likes

    @bob7l: Go

    Minecart to false still removed hopper minecarts.

    Banner

  • Avatar of bob7l bob7l Jun 25, 2015 at 22:53 UTC - 1 like

    @xion87: Go

    It should work flawlessly on any 1.8 build aside from mob-AI range.

  • Avatar of xion87 xion87 Jun 25, 2015 at 12:26 UTC - 0 likes

    when you expect to update this to 1.8?

  • Avatar of sammei19021 sammei19021 Jun 24, 2015 at 00:52 UTC - 0 likes

    Do you also have a skype?

    I am able to share more information with you over there.

  • Avatar of sammei19021 sammei19021 Jun 24, 2015 at 00:45 UTC - 0 likes

    Can the command /lagg halt be done on console as well.

    i wanted to set this command to auto run, but it's disabled on console.

    @bob7l my server don't crash often, but laggs very very easily. Tps drop insanely.

    I only found your plugin to be a temporary fix and Im glad Clear Lagg exists!!!!!

  • Avatar of Paxination Paxination Jun 23, 2015 at 16:29 UTC - 0 likes

    @ChaosBrakor: Go

    You should have WorldEdit and some form of Block logging plugin installed. I would use the block logging plugin and roll back changes made by those hackers. Easy simple fix a server owner should already have known.

  • Avatar of bob7l bob7l Jun 23, 2015 at 08:52 UTC - 0 likes

    @OutcastZeroOne: Go

    Clearlag doesn't modify entity breeding AI at all

Table of contents

  1. 1 Still have a question?

Facts

Date created
Mar 22, 2012
Categories
Last update
Feb 03, 2015
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
ClearLagg
Downloads
6,937,204
Recent files

Authors