SHARE
TWEET

ClearLag config

The_Munchkin Aug 19th, 2019 (edited) 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Plugin: ClearLag
  2. #https://dev.bukkit.org/projects/clearlagg
  3.  
  4. #----------------------------------------------------------#
  5.  
  6. #--------------------------------------------------------------------#
  7. #                   ClearLag Configuration File                      #
  8. #--------------------------------------------------------------------#
  9. # Configure to your liking, reload the config by tying: /lagg reload #
  10. #                                -                                   #
  11. #  Here is a helpful tutorial on this configuration setup! (Updated) #
  12. # http://dev.bukkit.org/bukkit-plugins/clearlagg/pages/config-setup/ #
  13. #--------------------------------------------------------------------#
  14. #          All possible mob names: https://goo.gl/cch8YK             #
  15. #--------------------------------------------------------------------#
  16. settings:
  17.   auto-update: true
  18.   config-version: 14
  19.   enable-api: true
  20.  
  21. #Limits the amount of item transfers for all the hoppers in a single chunk
  22. # -- 'transfer-limit' How many transfers per check interval until the hopper should be disabled
  23. # -- 'check-interval' In seconds, on what interval should the transfer limit be reset
  24. hopper-limiter:
  25.   enabled: false
  26.   transfer-limit: 5
  27.   check-interval: 1
  28.  
  29. #Meters your ram usage. If it goes above 'limit', run 'commands:'
  30. # -- 'ram-limit' is in MB, do not set it exactly to your max allocated ram amount
  31. # -- 'interval' is how often clearlag will check your ram usage
  32. # -- 'commands' lists the commands that will be ran upon hitting your ram-limit
  33. ram-meter:
  34.   enabled: false
  35.   interval: 20
  36.   ram-limit: 5000
  37.   commands:
  38.     - 'lagg killmobs'
  39.     - 'lagg clear'
  40.     - 'lagg gc'
  41.  
  42. #Configure what the '/lagg halt' command does
  43. # -- 'remove-entities' remove entities such as items, primed-tnt, and mobs
  44. # -- 'disable-natural-entity-spawning' disables the server's natural world spawning
  45. # -- 'halted' this section defines which actions should be halted during '/lagg halt'
  46. halt-command:
  47.   remove-entities: true
  48.   disable-natural-entity-spawning: true
  49.   halted:
  50.     fire: true
  51.     fire-burn: true
  52.     explosion: true
  53.     decay: true
  54.     block-fade: true
  55.     block-form: true
  56.     block-spread: true
  57.     block-natural-change: true
  58.  
  59. #This limits how fast a user can move by walking or flying in a single tick (20 ticks a second)
  60. #I HIGHLY recommend you use this on servers with increased player-speed/fly to prevent chunk overload
  61. #You may also use Spigot's internal speed limiters to achieve the same goal if present on your version
  62. # -- 'move-max-speed' Max speed on foot
  63. # -- 'fly-max-speed'  Max speed while flying
  64. player-speed-limiter:
  65.   enabled: false
  66.   move-max-speed: 0.7
  67.   fly-max-speed: 0.8
  68.  
  69. #Set the age of specific items when they're first spawned so they naturally despawn faster, or slower then others
  70. #Recommended for servers with a lot of item-entities conisting mostly of useless items (Such as stone)
  71. #Material list: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  72. # -- 'items' Lists the material names of the entities with their spawn-age (In seconds)
  73. item-spawn-age-setter:
  74.   enabled: false
  75.   items:
  76.     stone: 240
  77.     grass: 240
  78.     cobblestone: 240
  79.     log: 240
  80.     stone_axe: 240
  81.     stone_pickaxe: 240
  82.     stone_sword: 240
  83.     wooden_axe: 240
  84.     wooden_pickaxe: 240
  85.     wooden_sword: 240
  86.     rotten_flesh: 240
  87.     gravel: 240
  88.     dirt: 240
  89.     leather: 200
  90.     sand: 240
  91.     bone: 240
  92.     beef: 240
  93.     chicken: 160
  94.     rabbit: 240
  95.     salmon: 240
  96.     cactus: 210
  97.     wool: 180
  98.     arrow: 160
  99.     PORKCHOP: 240
  100.     potato: 240
  101.     RED_TULIP: 240
  102.  
  103. #Should mobs be nerfed to prevent over-breeding to reduce CPU usage (And possibly raise TPS)
  104. #When mobs are stuck too close, collisions are extremely intensive putting a pretty mean load on the server
  105. # -- 'max-mobs' means how many bably/adult animals are allowed within the 'check-radius'
  106. # -- 'check-radius' is the radius of what clearlag will check for 'max-mobs'
  107. mob-breeding-limiter:
  108.   enabled: false
  109.   max-mobs: 6
  110.   check-radius: 15
  111.  
  112. #Should clearlag purge logs under /logs when the server starts?
  113. # -- 'days-old' means how many days old can the log be to be deleted
  114. log-purger:
  115.   enabled: false
  116.   days-old: 3
  117.  
  118. #What type of entities SHOULD NOT be removed while doing /lagg area?
  119. area-filter:
  120.     - Itemframe
  121.     - Minecart
  122.     - Wolf
  123.     - Villager
  124.     - Horse
  125.     - ARMOR_STAND
  126.     - Cat
  127.  
  128. #Should clearlag reset the config, or attempt to update your config on updates
  129. # -- 'force-update' is whether or not clearlag will reset your config with a newer version
  130. # -- settings this to false will make clearlag update your config rather then resetting
  131. config-updater:
  132.   force-update: false
  133.  
  134. #This limits the mob egg spawners so players cannot "overload" the server with them
  135. # -- 'check-radius' is the radius clearlag will check for nearby entities
  136. # -- 'max-mobs' is how many entities may be in the radius before the spawning is blocked
  137. mobegg-limiter:
  138.   enabled: false
  139.   check-radius: 8
  140.   max-mobs: 5
  141.  
  142. #Disable new chunk generation, or just put a cap on how many can load at once.
  143. #May cause many bugs with Spigot 1.8+, not recommended!
  144. # -- 'create-new-chunks' disables or enables chunk creation. false would disallow new chunks
  145. # -- !UNSTABLE ON SPIGOT BUILDS!
  146. chunk-limiter:
  147.   enabled: false
  148.   limit: 6000
  149.   create-new-chunks: true
  150.  
  151. #This modifies the view range of entities
  152. # -- Lower it is, the better your entity tick will be and the more CPU cycles you'll save
  153. # -- If it's too high, expect bugs / lots of lag
  154. mob-range:
  155.   enabled: false
  156.   zombie: 30
  157.   skeleton: 30
  158.   creeper: 20
  159.  
  160. #How long should items/Mobs be left on the ground
  161. # -- live-time's go by ticks (20 ticks a second)
  162. live-time:
  163.   enabled: false
  164.   interval: 10
  165.   mobtimer: true
  166.   itemtimer: true
  167.   arrowtimer: true
  168.   arrowkilltime: 15
  169.   moblivetime: 600
  170.   itemlivetime: 240
  171.  
  172. #This option disallows the placement of too many tnt-minecarts
  173. # -- 'radius' is the radius clearlag will check for TNT-Minecarts
  174. tnt-minecart:
  175.   enabled: true
  176.   max: 2
  177.   radius: 6
  178.  
  179. #This option reduces global dispenser fire rate
  180. # -- 'time' is in milliseconds
  181. dispenser-reducer:
  182.   enabled: false
  183.   time: 100
  184.  
  185. #This option reduces the explosions of mass amounts of tnt, and reduces tnt lag
  186. # -- 'check-radius' is the radius clearlag will check for primed TNT
  187. # -- 'max-primed' is the max primed TNT within the radius allowed before clearlag begins to remove
  188. tnt-reducer:
  189.   enabled: false
  190.   check-radius: 5
  191.   max-primed: 3
  192.  
  193. #This option reduces fire spread rate
  194. # -- 'time' is in milliseconds
  195. firespread-reducer:
  196.   enabled: false
  197.   time: 2000
  198.  
  199. #How many entities should one chunk be allowed to hold?
  200. # -- 'entities' lists all the entities that will be counted
  201. #     and possibly removed.
  202. chunk-entity-limiter:
  203.   enabled: false
  204.   limit: 10
  205.   entities:
  206.     - Squid
  207.     - Zombie
  208.     - Skeleton
  209.     - Creeper
  210.     - Chicken
  211.     - Pig
  212.     - Sheep
  213.     - Cow
  214.     - Horse
  215.   # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  216.  
  217. #How many mobs should be allowed to spawn globally
  218. # -- 'interval' is the check interval check the current spawn amounts
  219. spawn-limiter:
  220.   enabled: false
  221.   interval: 15
  222.   mobs: 300
  223.   animals: 300
  224.  
  225. #Meters your TPS, if it goes to low, run the commands you wrote below!
  226. # -- 'interval' is how often tps-meter will check the TPS
  227. # -- 'tps-trigger' is at what TPS the commands will be ran at
  228. # -- 'tps-recover' is at what TPS should the TPS be considered stable after 'tps-trigger' is executed
  229. # -- 'commands' lists what commands will be executed when tps-tigger is reached
  230. # -- 'recover-commands' lists what commands will be executed when tps-recover is reached
  231. # -- 'trigger-broadcast-message' specifies which message should be broadcasted when tps-trigger runs
  232. # -- 'recover-broadcast-message' specifies which message should be broadcasted when TPS recovers
  233. # -- 'broadcast-enabled' defines whether or not tps-meter should broadcast
  234. tps-meter:
  235.   enabled: false
  236.   trigger-broadcast-message: '&4&l[BetterPerformance] &cThe server is overloaded, executing lag-perventing measures'
  237.   recover-broadcast-message: '&2&l[BetterPerformance] &aThe server is no longer overloaded!'
  238.   broadcast-enabled: false
  239.   interval: 15
  240.   tps-trigger: 14.0
  241.   tps-recover: 19.0
  242.   commands:
  243.     - 'lagg killmobs'
  244.     - 'lagg clear'
  245.     - 'lagg halt'
  246.   recover-commands:
  247.     - 'lagg halt'
  248.  
  249. #This is /lagg killmobs, put what you DON'T want removed!
  250. # -- 'remove-named', when FALSE entities with custom names will NOT be removed
  251. # -- 'mob-filter' lists which mobs will be IGNORED during /lagg killmobs
  252. kill-mobs:
  253.    remove-named: false
  254.    mob-filter:
  255.    - Villager
  256.    - Wolf
  257. #  - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test"
  258. #  - Zombie hasName <- This entity will be filtered if it HAS a name
  259.    - ARMOR_STAND
  260.    - Horse
  261.  
  262. #This nerfs mob-spawners (Natural and player-made)
  263. #-------------------------------------------------
  264. #This goes by chunks rather then spawners. This is to prevent
  265. #a large buildup of mob-spawners within a small region to "bypass"
  266. #your set limit. It also allows for keys to be generated more easily
  267. #increasing the performance
  268. # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner
  269. # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove
  270. # --  the mobs spawned by the mobspawner upon chunk unload (Highly Recommended)
  271. mobspawner:
  272.   enabled: false
  273.   max-spawn: 4
  274.   remove-mobs-on-chunk-unload: true
  275.  
  276. #Dont use if you have CB++ or Spigot!
  277. item-merger:
  278.   enabled: false
  279.   radius: 6
  280.  
  281. #Auto-removal options
  282. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  283. # -- NOTE: The below 'remove' section applies to this remover!
  284. # -- NOTE: Putting the interval to low will cause issues!
  285. # -- NOTE: To disable "warnings", set it to "warnings: []"
  286. # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default)
  287. #
  288. #        !==[ All string values MUST be inside '']==!
  289. #
  290. # -- 'remove-entities' lists what entities should be REMOVED on removal
  291. # -- 'warnings' list warnings to be given out at specified times
  292. auto-removal:
  293.   enabled: true
  294.   broadcast-message: '&2&l[BetterPerformance] &aCleared &b+RemoveAmount &aentities!'
  295.   broadcast-removal: true
  296.   autoremoval-interval: 460
  297.   world-filter:
  298.   # - this_world <-This world will be ignored during removal!
  299.   boat: true
  300.   falling-block: true
  301.   experience-orb: true
  302.   painting: false
  303.   projectile: true
  304.   item: true
  305.   itemframe: false
  306.   minecart: false
  307.   primed-tnt: true
  308.   item-filter:
  309.   # - Stone <-This item-id will be ignored during removal!
  310.   # - Grass
  311.   remove-entities:
  312.   # - cow <- This mob-type will be REMOVED during removal!
  313.   # - MINECART_MOB_SPAWNER
  314.   # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  315.   # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  316.   # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  317.   warnings:
  318.         - 'time:400 msg:&4&l[BetterPerformance] &cClearing &bGround Items &cin &b+remaining &cseconds!'
  319.         - 'time:440 msg:&4&l[BetterPerformance] &cClearing &bGround Items &cin &b+remaining &cseconds!'
  320.  
  321. #What should be removed during /lagg clear
  322. command-remove:
  323.   world-filter:
  324.   # - this_world <-This world will be ignored during removal!
  325.   broadcast-removal: false
  326.   boat: true
  327.   falling-block: true
  328.   experience-orb: true
  329.   painting: false
  330.   projectile: true
  331.   item: true
  332.   itemframe: false
  333.   minecart: false
  334.   primed-tnt: true
  335.   item-filter:
  336.   # - Stone <-This item-id will be ignored during removal!
  337.   # - Grass
  338.   remove-entities:
  339.   # - cow <- This mob-type will be REMOVED during removal!
  340.   # - MINECART_MOB_SPAWNER
  341.   # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  342.   # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  343.   # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  344.  
  345. limit:
  346.   enabled: true
  347.   max: 1000
  348.   check-interval: 60
  349.   broadcast-message: '&4&l[BetterPerformance] &cLimit reached! &aCleared &b+RemoveAmount &aentities!'
  350.   world-filter:
  351.   # - this_world <-This world will be ignored during removal!
  352.   broadcast-removal: true
  353.   boat: true
  354.   falling-block: true
  355.   experience-orb: true
  356.   painting: false
  357.   projectile: true
  358.   item: true
  359.   itemframe: false
  360.   minecart: false
  361.   primed-tnt: true
  362.   item-filter:
  363.   # - Stone
  364.   # - Grass <-This item-id will be ignored during removal!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top