VeloLib

config

May 22nd, 2021
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.33 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.  
  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: 240
  105. grass: 240
  106. cobblestone: 240
  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. rotten_flesh: 240
  115. gravel: 240
  116. dirt: 240
  117. leather: 200
  118. sand: 240
  119. bone: 240
  120. beef: 240
  121. chicken: 160
  122. rabbit: 240
  123. salmon: 240
  124. cactus: 210
  125. wool: 180
  126. arrow: 160
  127. PORKCHOP: 240
  128. potato: 240
  129. RED_TULIP: 240
  130.  
  131. #Should mobs be nerfed to prevent over-breeding to reduce CPU usage (And possibly raise TPS)
  132. #When mobs are stuck too close, collisions are extremely intensive putting a pretty mean load on the server
  133. # -- 'max-mobs' means how many bably/adult animals are allowed within the 'check-radius'
  134. # -- 'check-radius' is the radius of what clearlag will check for 'max-mobs'
  135. mob-breeding-limiter:
  136. enabled: false
  137. max-mobs: 6
  138. check-radius: 15
  139.  
  140. #Should clearlag purge logs under /logs when the server starts?
  141. # -- 'days-old' means how many days old can the log be to be deleted
  142. log-purger:
  143. enabled: false
  144. days-old: 3
  145.  
  146. #What type of entities SHOULD NOT be removed while doing /lagg area?
  147. area-filter:
  148. - Itemframe
  149. - Minecart
  150. - Wolf
  151. - Villager
  152. - Horse
  153. - ARMOR_STAND
  154. - TRIDENT
  155. - ENDERMITE
  156. - HOPPER_MINECART
  157. - MINECART_HOPPER
  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: true
  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: true
  280. check-interval: 1
  281. chunk-batch-size: 2
  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: false
  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: false
  305. interval: 15
  306. tps-trigger: 14.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. - ARMOR_STAND
  324. - Horse
  325. - ENDERMITE
  326. - TRIDENT
  327. - HOPPER_MINECART
  328. - MINECART_HOPPER
  329. - TROPICAL_FISH
  330. - tropical_fish
  331. - DOLPHIN
  332. - dolphin
  333. - SALMON
  334. - salmon
  335. - COD
  336. - cod
  337. # - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test"
  338. # - Zombie hasName <- This entity will be filtered if it HAS a name
  339.  
  340. #This nerfs mob-spawners (Natural and player-made)
  341. #-------------------------------------------------
  342. #This goes by chunks rather then spawners. This is to prevent
  343. #a large buildup of mob-spawners within a small region to "bypass"
  344. #your set limit. It also allows for keys to be generated more easily
  345. #increasing the performance
  346. # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner
  347. # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove
  348. # -- the mobs spawned by the mobspawner upon chunk unload (Highly Recommended)
  349. mobspawner:
  350. enabled: false
  351. max-spawn: 4
  352. remove-mobs-on-chunk-unload: true
  353.  
  354. #Dont use if you have CB++ or Spigot!
  355. item-merger:
  356. enabled: false
  357. radius: 6
  358.  
  359. #Auto-removal options
  360. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  361. # -- NOTE: The below 'remove' section applies to this remover!
  362. # -- NOTE: Putting the interval to low will cause issues!
  363. # -- NOTE: To disable "warnings", set it to "warnings: []"
  364. # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default)
  365. #
  366. # !==[ All string values MUST be inside '']==!
  367. #
  368. # -- 'remove-entities' lists what entities should be REMOVED on removal
  369. # -- 'warnings' list warnings to be given out at specified times
  370. # -- 'item-filter' What ground-items should NOT be removed during removal
  371. # -- 'remove-entities' What entities SHOULD be removed during removal
  372. auto-removal:
  373. enabled: true
  374. broadcast-message: '&6[ClearLag] &aRemoved +RemoveAmount Entities!'
  375. broadcast-removal: true
  376. autoremoval-interval: 460
  377. world-filter:
  378. # - this_world <-This world will be ignored during removal!
  379. boat: false
  380. falling-block: false
  381. experience-orb: false
  382. painting: false
  383. projectile: false
  384. item: true
  385. itemframe: false
  386. minecart: false
  387. primed-tnt: false
  388. item-filter:
  389. # - Stone <-This item-id will be ignored during removal!
  390. # - Grass
  391. remove-entities: [
  392. - MINECART
  393. ]
  394. # - cow <- This mob-type will be REMOVED during removal!
  395. # - MINECART_MOB_SPAWNER
  396. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  397. # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  398. # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  399. warnings:
  400. - 'time:400 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  401. - 'time:440 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  402.  
  403. #What should be removed during /lagg clear, nearly the same thing as auto-removal
  404. command-remove:
  405. world-filter:
  406. # - this_world <-This world will be ignored during removal!
  407. broadcast-removal: false
  408. boat: true
  409. falling-block: true
  410. experience-orb: true
  411. painting: false
  412. projectile: true
  413. item: true
  414. itemframe: false
  415. minecart: false
  416. primed-tnt: true
  417. item-filter:
  418. # - Stone <-This item-id will be ignored during removal!
  419. # - Grass
  420. remove-entities:
  421. # - cow <- This mob-type will be REMOVED during removal!
  422. # - MINECART_MOB_SPAWNER
  423. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  424. # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  425. # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  426.  
  427. #Very very old, but still works. Just specifies a global entity limit. I'd recommend 'custom-trigger-removal' instead
  428. # -- 'max' max entities allowed before the entity removal is activated
  429. limit:
  430. enabled: false
  431. max: 1000
  432. check-interval: 60
  433. broadcast-message: '&6[ClearLag] &aLimit reached, removed +RemoveAmount Entities!'
  434. world-filter:
  435. # - this_world <-This world will be ignored during removal!
  436. broadcast-removal: true
  437. boat: false
  438. falling-block: true
  439. experience-orb: false
  440. painting: false
  441. projectile: false
  442. item: true
  443. itemframe: false
  444. minecart: false
  445. primed-tnt: true
  446. item-filter:
  447. # - Stone
  448. # - Grass <-This item-id will be ignored during removal!
  449.  
  450.  
  451. # Create your own custom removal stuff!
  452. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  453. # -- NOTE: The below 'remove' section applies to this remover!
  454. # \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  455. # > READ FOR HELP -> https://dev.bukkit.org/projects/clearlagg/pages/config-setup <- READ FOR HELP <
  456. # /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
  457. custom-trigger-removal:
  458. enabled: false
  459. triggers:
  460. trigger1:
  461. trigger-type: tps-trigger
  462. run-interval: 5
  463. tps-trigger: 14.0
  464. tps-recover: 19.0
  465. jobs:
  466. command-executor:
  467. commands:
  468. - 'lagg killmobs'
  469. - 'lagg clear'
  470. - 'lagg halt'
  471. recover-commands:
  472. - 'lagg halt'
  473. entity-clearer:
  474. execute-job-time: 120
  475. warnings:
  476. - 'time:60 msg:&4[ClearLag] &cEntities/drops will be purged in &7+remaining &cseconds!'
  477. - 'time:100 msg:&4[ClearLag] &cEntities/drops will be purged in &720 &cseconds!'
  478. - 'time:110 msg:&4[ClearLag] &cEntities/drops will be purged in &710 &cseconds!'
  479. world-filter:
  480. # - world <-This world will be ignored during removal
  481. removeEntities:
  482. - item
  483. - zombie !hasName
  484. - skeleton !hasName
  485. - pig !hasName
  486. - cow !hasName
  487. trigger2:
  488. trigger-type: entity-limit-trigger
  489. run-interval: 25
  490. limit: 200
  491. world-filter:
  492. # - world <-This world will be ignored during checking
  493. entity-limits:
  494. - zombie
  495. - skeleton
  496. - enderman
  497. jobs:
  498. entity-clearer:
  499. world-filter:
  500. # - world <-This world will be ignored during removal
  501. remove-entities:
  502. - zombie
  503. - skeleton
  504. - enderman
  505.  
Add Comment
Please, Sign In to add comment