Advertisement
Guest User

Untitled

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