Advertisement
Kamado

ClearLagg

May 8th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.05 KB | None | 0 0
  1. #--------------------------------------------------------------------#
  2. # ClearLag Configuration File #
  3. #--------------------------------------------------------------------#
  4. # Configure to your liking, reload the config by tying: /lagg reload #
  5. # - #
  6. # Here is a helpful tutorial on this configuration setup! (Updated) #
  7. # http://dev.bukkit.org/bukkit-plugins/clearlagg/pages/config-setup/ #
  8. #--------------------------------------------------------------------#
  9. # All possible mob names: https://goo.gl/cch8YK #
  10. #--------------------------------------------------------------------#
  11. config-version: 20
  12.  
  13. # -- 'use-internal-tps' Should clearlag just use the calculated internal TPS? (Improves accuracy)
  14. # -- 'language' Clearlag supports multiple languages (https://github.com/bob7l/Clearlag-Languages) translated by the community
  15. # -- 'use-internal-tps' Should Clearlag use Spigot's /tps? (Updated by minutes, much slower, but more accurate!)
  16. settings:
  17. language: English
  18. auto-update: true
  19. enable-api: true
  20. use-internal-tps: true
  21.  
  22. #Controls ALL of Clearlag's broadcasting. Disabling this will disable ALL broadcasting on Clearlag
  23. # -- 'enabled' Should clearlag broadcast messages at all? (Example: Auto-removal, warnings, ect)
  24. # -- 'async' Should messages be broadcasted on another thread
  25. # -- 'use-permission-for-broadcasts' Should clearlag use permissions?
  26. # -- 'permission' What is the permission? (By default, it's bukkit's default)
  27. global-broadcasts:
  28. enabled: true
  29. async: false
  30. use-permission-for-broadcasts: false
  31. permission: bukkit.broadcast
  32.  
  33. #Monitors your server's main thread for locking/freezing. Helps figure out what's causing lag-spikes
  34. # NOTE: This will outprint mostly just stacktraces. It's up to YOU to interpret the stacktrace
  35. # NOTE: (!Important!) Clearlag will print EVERYTHING to your Spigot/Bukkit server logs!
  36. # NOTE: A large 'Garbage collection time' generally means the spike was caused by the Garbage collector (Memory issue basically..)
  37. # -- 'enabled' Should this be enabled (Prints data to your logs, not ingame chat)
  38. # -- 'min-elapsed-time' How long (IN MILLISECONDS) of a server-tick constitutes a freeze/lock? I don't recommend going under ~80
  39. # -- 'check-interval' How often (IN MILLISECONDS) should the server be checked? Lower the number, more accurate the timings
  40. # -- 'follow-stack' Should Clearlag keep printing the stacktrace every time it changes (Can be very spammy)?
  41. # Help-> https://dev.bukkit.org/projects/clearlagg/pages/finding-the-cause-of-lag-spikes
  42. lag-spike-helper:
  43. enabled: false
  44. min-elapsed-time: 500
  45. check-interval: 100
  46. follow-stack: true
  47.  
  48. #Limits the amount of item transfers for all the hoppers in a single chunk
  49. # -- 'transfer-limit' How many transfers per check interval until the hopper should be disabled
  50. # -- 'check-interval' In seconds, on what interval should the transfer limit be reset
  51. hopper-limiter:
  52. enabled: false
  53. transfer-limit: 5
  54. check-interval: 1
  55.  
  56. #Meters your ram usage. If it goes above 'limit', run 'commands:'
  57. # NOTE: It's perfectly normal for your server to be using a lot of memory. The JVM's garbage collector will automatically free memory.
  58. # NOTE: Only use this if you have very little memory that can't support the server
  59. # -- 'ram-limit' is in MB, do not set it exactly to your max allocated ram amount
  60. # -- 'interval' is how often clearlag will check your ram usage
  61. # -- 'commands' lists the commands that will be ran upon hitting your ram-limit
  62. ram-meter:
  63. enabled: false
  64. interval: 20
  65. ram-limit: 5000
  66. commands:
  67. - 'lagg killmobs'
  68. - 'lagg clear'
  69. - 'lagg gc'
  70.  
  71. #Configure what the '/lagg halt' command does
  72. # -- 'remove-entities' remove entities such as items, primed-tnt, and mobs
  73. # -- 'disable-natural-entity-spawning' disables the server's natural world spawning
  74. # -- 'halted' this section defines which actions should be halted during '/lagg halt'
  75. halt-command:
  76. remove-entities: true
  77. disable-natural-entity-spawning: true
  78. halted:
  79. fire: true
  80. fire-burn: true
  81. explosion: true
  82. decay: true
  83. block-fade: true
  84. block-form: true
  85. block-spread: true
  86. block-natural-change: true
  87.  
  88. #This limits how fast a user can move by walking or flying in a single tick (20 ticks a second)
  89. #I HIGHLY recommend you use this on servers with increased player-speed/fly to prevent chunk overload
  90. #You may also use Spigot's internal speed limiters to achieve the same goal if present on your version (better performance)
  91. # -- 'move-max-speed' Max speed on foot
  92. # -- 'fly-max-speed' Max speed while flying
  93. player-speed-limiter:
  94. enabled: false
  95. move-max-speed: 0.7
  96. fly-max-speed: 0.8
  97.  
  98. #Set the age of specific items when they're first spawned so they naturally despawn faster, or slower then others
  99. #Recommended for servers with a lot of item-entities consisting mostly of useless items (Such as stone)
  100. #Material list: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  101. # -- 'items' Lists the material names of the entities with their spawn-age (In seconds)
  102. item-spawn-age-setter:
  103. enabled: false
  104. items:
  105. stone: 240
  106. grass: 240
  107. cobblestone: 240
  108. log: 240
  109. stone_axe: 240
  110. stone_pickaxe: 240
  111. stone_sword: 240
  112. wooden_axe: 240
  113. wooden_pickaxe: 240
  114. wooden_sword: 240
  115. rotten_flesh: 240
  116. gravel: 240
  117. dirt: 240
  118. leather: 200
  119. sand: 240
  120. bone: 240
  121. beef: 240
  122. chicken: 160
  123. rabbit: 240
  124. salmon: 240
  125. cactus: 210
  126. wool: 180
  127. arrow: 160
  128. PORKCHOP: 240
  129. potato: 240
  130. RED_TULIP: 240
  131.  
  132. #Should mobs be nerfed to prevent over-breeding to reduce CPU usage (And possibly raise TPS)
  133. #When mobs are stuck too close, collisions are extremely intensive putting a pretty mean load on the server
  134. # -- 'max-mobs' means how many bably/adult animals are allowed within the 'check-radius'
  135. # -- 'check-radius' is the radius of what clearlag will check for 'max-mobs'
  136. mob-breeding-limiter:
  137. enabled: false
  138. max-mobs: 6
  139. check-radius: 15
  140.  
  141. #Should clearlag purge logs under /logs when the server starts?
  142. # -- 'days-old' means how many days old can the log be to be deleted
  143. log-purger:
  144. enabled: false
  145. days-old: 3
  146.  
  147. #What type of entities SHOULD NOT be removed while doing /lagg area?
  148. area-filter:
  149. - Itemframe
  150. - Minecart
  151. - Wolf
  152. - Villager
  153. - Horse
  154. - ARMOR_STAND
  155.  
  156. #Should clearlag reset the config, or attempt to update your config on updates
  157. # -- 'force-update' is whether or not clearlag will reset your config with a newer version
  158. # -- settings this to false will make clearlag update your config rather then resetting
  159. config-updater:
  160. force-update: false
  161.  
  162. #This limits the mob egg spawners so players cannot "overload" the server with them
  163. # -- 'check-radius' is the radius clearlag will check for nearby entities
  164. # -- 'max-mobs' is how many entities may be in the radius before the spawning is blocked
  165. mobegg-limiter:
  166. enabled: false
  167. check-radius: 8
  168. max-mobs: 5
  169.  
  170. #Disable new chunk generation, or just put a cap on how many can load at once.
  171. #May cause many bugs with Spigot 1.8+, not recommended!
  172. # -- 'create-new-chunks' disables or enables chunk creation. false would disallow new chunks
  173. # -- !UNSTABLE ON SPIGOT BUILDS!
  174. chunk-limiter:
  175. enabled: false
  176. limit: 6000
  177. create-new-chunks: true
  178.  
  179. #This modifies the view range of entities
  180. # -- Lower it is, the better your entity tick will be and the more CPU cycles you'll save
  181. # -- If it's too high, expect bugs / lots of lag
  182. mob-range:
  183. enabled: false
  184. zombie: 30
  185. skeleton: 30
  186. creeper: 20
  187.  
  188. #How long should items/Mobs be left on the ground
  189. # -- live-time's go by ticks (20 ticks a second)
  190. live-time:
  191. enabled: false
  192. interval: 10
  193. mobtimer: true
  194. itemtimer: true
  195. arrowtimer: true
  196. arrowkilltime: 15
  197. moblivetime: 600
  198. itemlivetime: 240
  199.  
  200. #This option disallows the placement of too many tnt-minecarts
  201. # -- 'radius' is the radius clearlag will check for TNT-Minecarts
  202. tnt-minecart:
  203. enabled: false
  204. max: 2
  205. radius: 6
  206.  
  207. #This option reduces global dispenser fire rate
  208. # -- 'time' is in milliseconds
  209. dispenser-reducer:
  210. enabled: false
  211. time: 100
  212.  
  213. #This option reduces the explosions of mass amounts of tnt, and reduces tnt lag
  214. # -- 'check-radius' is the radius clearlag will check for primed TNT
  215. # -- 'max-primed' is the max primed TNT within the radius allowed before clearlag begins to remove
  216. tnt-reducer:
  217. enabled: false
  218. check-radius: 5
  219. max-primed: 3
  220.  
  221. #This option reduces fire spread rate
  222. # -- 'time' is in milliseconds
  223. firespread-reducer:
  224. enabled: false
  225. time: 2000
  226.  
  227. #How many entities should one chunk be allowed to hold?
  228. # -- 'entities' lists all the entities that will be counted
  229. # and possibly removed.
  230. chunk-entity-limiter:
  231. enabled: false
  232. limit: 10
  233. entities:
  234. - Squid
  235. - Zombie
  236. - Skeleton
  237. - Creeper
  238. - Chicken
  239. - Pig
  240. - Sheep
  241. - Cow
  242. - Horse
  243. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  244.  
  245. #A per-entity chunk limiter. Very useful to limiting useless mobs like squid, but not zombies
  246. # -- 'entity-limits' lists all the entities, their filters, and 'limit' to specify their limit
  247. # to be removed/culled
  248. # -- 'passive-purger' Enables random checking of chunks to see whether they're exceeding limits.
  249. # -- Useful for when you want to prevent lag exploiting
  250. # -- 'passive-cleaning-enabled' Enables the passive-purger
  251. # -- 'check-interval' How often (in ticks, 50MS) should chunks be checked
  252. # -- 'chunk-batch-size' How many chunks at once should be checked
  253. per-entity-chunk-entity-limiter:
  254. enabled: false
  255. entity-limits:
  256. - Squid limit:1
  257. - Zombie limit:2
  258. - Skeleton limit:2
  259. - Creeper limit:2
  260. - Chicken limit:3
  261. - Pig limit:5
  262. - Sheep limit:5
  263. - Cow limit:5
  264. - Horse limit:3 !hasName
  265. - Villager limit:4
  266. - Arrow limit:4 inGround
  267. - Rabbit limit:2
  268. - PufferFish limit:2
  269. - Silverfish limit:2
  270. - TROPICAL_FISH limit:2
  271. - COD limit:2
  272. - DOLPHIN limit:2
  273. - Bat limit:1
  274. - Armorstand limit:10
  275. passive-cleaner:
  276. passive-cleaning-enabled: false
  277. check-interval: 20
  278. chunk-batch-size: 100
  279.  
  280. #How many mobs should be allowed to spawn globally
  281. # -- 'interval' is the check interval check the current spawn amounts
  282. spawn-limiter:
  283. enabled: false
  284. interval: 15
  285. mobs: 300
  286. animals: 300
  287.  
  288. #Meters your TPS, if it goes to low, run the commands you wrote below!
  289. # -- 'interval' is how often tps-meter will check the TPS
  290. # -- 'tps-trigger' is at what TPS the commands will be ran at
  291. # -- 'tps-recover' is at what TPS should the TPS be considered stable after 'tps-trigger' is executed
  292. # -- 'commands' lists what commands will be executed when tps-tigger is reached
  293. # -- 'recover-commands' lists what commands will be executed when tps-recover is reached
  294. # -- 'trigger-broadcast-message' specifies which message should be broadcasted when tps-trigger runs
  295. # -- 'recover-broadcast-message' specifies which message should be broadcasted when TPS recovers
  296. # -- 'broadcast-enabled' defines whether or not tps-meter should broadcast
  297. tps-meter:
  298. enabled: false
  299. trigger-broadcast-message: '&6[ClearLag] &cThe server is overloaded, executing lag-perventing measures'
  300. recover-broadcast-message: '&6[ClearLag] &aThe server is no longer overloaded!'
  301. broadcast-enabled: false
  302. interval: 15
  303. tps-trigger: 14.0
  304. tps-recover: 19.0
  305. commands:
  306. - 'lagg killmobs'
  307. - 'lagg clear'
  308. - 'lagg halt'
  309. recover-commands:
  310. - 'lagg halt'
  311.  
  312. #This is /lagg killmobs, put what you DON'T want removed!
  313. # -- 'remove-named', when FALSE entities with custom names will NOT be removed
  314. # -- 'mob-filter' lists which mobs will be IGNORED during /lagg killmobs
  315. kill-mobs:
  316. remove-named: false
  317. mob-filter:
  318. - Villager
  319. - Wolf
  320. - ARMOR_STAND
  321. - Horse
  322. # - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test"
  323. # - Zombie hasName <- This entity will be filtered if it HAS a name
  324.  
  325. #This nerfs mob-spawners (Natural and player-made)
  326. #-------------------------------------------------
  327. #This goes by chunks rather then spawners. This is to prevent
  328. #a large buildup of mob-spawners within a small region to "bypass"
  329. #your set limit. It also allows for keys to be generated more easily
  330. #increasing the performance
  331. # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner
  332. # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove
  333. # -- the mobs spawned by the mobspawner upon chunk unload (Highly Recommended)
  334. mobspawner:
  335. enabled: false
  336. max-spawn: 4
  337. remove-mobs-on-chunk-unload: true
  338.  
  339. #Dont use if you have CB++ or Spigot!
  340. item-merger:
  341. enabled: false
  342. radius: 6
  343.  
  344. #Auto-removal options
  345. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  346. # -- NOTE: The below 'remove' section applies to this remover!
  347. # -- NOTE: Putting the interval to low will cause issues!
  348. # -- NOTE: To disable "warnings", set it to "warnings: []"
  349. # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default)
  350. #
  351. # !==[ All string values MUST be inside '']==!
  352. #
  353. # -- 'remove-entities' lists what entities should be REMOVED on removal
  354. # -- 'warnings' list warnings to be given out at specified times
  355. # -- 'item-filter' What ground-items should NOT be removed during removal
  356. # -- 'remove-entities' What entities SHOULD be removed during removal
  357. auto-removal:
  358. enabled: true
  359. broadcast-message: '&6[ClearLag] &aRemoved +RemoveAmount Entities!'
  360. broadcast-removal: true
  361. autoremoval-interval: 460
  362. world-filter:
  363. # - this_world <-This world will be ignored during removal!
  364. boat: true
  365. falling-block: true
  366. experience-orb: true
  367. painting: false
  368. projectile: true
  369. item: true
  370. itemframe: false
  371. minecart: true
  372. primed-tnt: true
  373. item-filter:
  374. # - Stone <-This item-id will be ignored during removal!
  375. # - Grass
  376. remove-entities: []
  377. # - cow <- This mob-type will be REMOVED during removal!
  378. # - MINECART_MOB_SPAWNER
  379. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  380. # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  381. # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  382. warnings:
  383. - 'time:400 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  384. - 'time:440 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  385.  
  386. #What should be removed during /lagg clear, nearly the same thing as auto-removal
  387. command-remove:
  388. world-filter:
  389. # - this_world <-This world will be ignored during removal!
  390. broadcast-removal: false
  391. boat: true
  392. falling-block: true
  393. experience-orb: true
  394. painting: false
  395. projectile: true
  396. item: true
  397. itemframe: false
  398. minecart: false
  399. primed-tnt: true
  400. item-filter:
  401. # - Stone <-This item-id will be ignored during removal!
  402. # - Grass
  403. remove-entities:
  404. # - cow <- This mob-type will be REMOVED during removal!
  405. # - MINECART_MOB_SPAWNER
  406. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  407. # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  408. # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  409.  
  410. #Very very old, but still works. Just specifies a global entity limit. I'd recommend 'custom-trigger-removal' instead
  411. # -- 'max' max entities allowed before the entity removal is activated
  412. limit:
  413. enabled: false
  414. max: 1000
  415. check-interval: 60
  416. broadcast-message: '&6[ClearLag] &aLimit reached, removed +RemoveAmount Entities!'
  417. world-filter:
  418. # - this_world <-This world will be ignored during removal!
  419. broadcast-removal: true
  420. boat: true
  421. falling-block: true
  422. experience-orb: true
  423. painting: false
  424. projectile: true
  425. item: true
  426. itemframe: false
  427. minecart: false
  428. primed-tnt: true
  429. item-filter:
  430. # - Stone
  431. # - Grass <-This item-id will be ignored during removal!
  432.  
  433.  
  434. # Create your own custom removal stuff!
  435. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  436. # -- NOTE: The below 'remove' section applies to this remover!
  437. # \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  438. # > READ FOR HELP -> https://dev.bukkit.org/projects/clearlagg/pages/config-setup <- READ FOR HELP <
  439. # /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
  440. custom-trigger-removal:
  441. enabled: false
  442. triggers:
  443. trigger1:
  444. trigger-type: tps-trigger
  445. run-interval: 5
  446. tps-trigger: 14.0
  447. tps-recover: 19.0
  448. jobs:
  449. command-executor:
  450. commands:
  451. - 'lagg killmobs'
  452. - 'lagg clear'
  453. - 'lagg halt'
  454. recover-commands:
  455. - 'lagg halt'
  456. entity-clearer:
  457. execute-job-time: 120
  458. warnings:
  459. - 'time:60 msg:&4[ClearLag] &cEntities/drops will be purged in &7+remaining &cseconds!'
  460. - 'time:100 msg:&4[ClearLag] &cEntities/drops will be purged in &720 &cseconds!'
  461. - 'time:110 msg:&4[ClearLag] &cEntities/drops will be purged in &710 &cseconds!'
  462. world-filter:
  463. # - world <-This world will be ignored during removal
  464. removeEntities:
  465. - item
  466. - zombie !hasName
  467. - skeleton !hasName
  468. - pig !hasName
  469. - cow !hasName
  470. trigger2:
  471. trigger-type: entity-limit-trigger
  472. run-interval: 25
  473. limit: 200
  474. world-filter:
  475. # - world <-This world will be ignored during checking
  476. entity-limits:
  477. - zombie
  478. - skeleton
  479. - enderman
  480. jobs:
  481. entity-clearer:
  482. world-filter:
  483. # - world <-This world will be ignored during removal
  484. remove-entities:
  485. - zombie
  486. - skeleton
  487. - enderman
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement