net_vansshota

Untitled

Jan 12th, 2023
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.83 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: Russian
  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: true
  144. days-old: 7
  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. - Cat
  155. - Boat
  156.  
  157. #Should clearlag reset the config, or attempt to update your config on updates
  158. # -- 'force-update' is whether or not clearlag will reset your config with a newer version
  159. # -- settings this to false will make clearlag update your config rather then resetting
  160. config-updater:
  161. force-update: false
  162.  
  163. #This limits the mob egg spawners so players cannot "overload" the server with them
  164. # -- 'check-radius' is the radius clearlag will check for nearby entities
  165. # -- 'max-mobs' is how many entities may be in the radius before the spawning is blocked
  166. mobegg-limiter:
  167. enabled: false
  168. check-radius: 8
  169. max-mobs: 5
  170.  
  171. #Disable new chunk generation, or just put a cap on how many can load at once.
  172. #May cause many bugs with Spigot 1.8+, not recommended!
  173. # -- 'create-new-chunks' disables or enables chunk creation. false would disallow new chunks
  174. # -- !UNSTABLE ON SPIGOT BUILDS!
  175. chunk-limiter:
  176. enabled: false
  177. limit: 6000
  178. create-new-chunks: true
  179.  
  180. #This modifies the view range of entities
  181. # -- Lower it is, the better your entity tick will be and the more CPU cycles you'll save
  182. # -- If it's too high, expect bugs / lots of lag
  183. mob-range:
  184. enabled: false
  185. zombie: 30
  186. skeleton: 30
  187. creeper: 20
  188.  
  189. #How long should items/Mobs be left on the ground
  190. # -- live-time's go by ticks (20 ticks a second)
  191. live-time:
  192. enabled: false
  193. interval: 10
  194. mobtimer: true
  195. itemtimer: true
  196. arrowtimer: true
  197. arrowkilltime: 15
  198. moblivetime: 600
  199. itemlivetime: 240
  200.  
  201. #This option disallows the placement of too many tnt-minecarts
  202. # -- 'radius' is the radius clearlag will check for TNT-Minecarts
  203. tnt-minecart:
  204. enabled: true
  205. max: 2
  206. radius: 6
  207.  
  208. #This option reduces global dispenser fire rate
  209. # -- 'time' is in milliseconds
  210. dispenser-reducer:
  211. enabled: false
  212. time: 100
  213.  
  214. #This option reduces the explosions of mass amounts of tnt, and reduces tnt lag
  215. # -- 'check-radius' is the radius clearlag will check for primed TNT
  216. # -- 'max-primed' is the max primed TNT within the radius allowed before clearlag begins to remove
  217. tnt-reducer:
  218. enabled: false
  219. check-radius: 5
  220. max-primed: 3
  221.  
  222. #This option reduces fire spread rate
  223. # -- 'time' is in milliseconds
  224. firespread-reducer:
  225. enabled: false
  226. time: 2000
  227.  
  228. #How many entities should one chunk be allowed to hold?
  229. # -- 'entities' lists all the entities that will be counted
  230. # and possibly removed.
  231. chunk-entity-limiter:
  232. enabled: true
  233. limit: 25
  234. entities:
  235. - Squid
  236. - zombified_piglin
  237. - Zombie
  238. - Skeleton
  239. - Creeper
  240. - Chicken
  241. - Pig
  242. - Sheep
  243. - Cow
  244. - Horse
  245. # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  246.  
  247. #A per-entity chunk limiter. Very useful to limiting useless mobs like squid, but not zombies
  248. # -- 'entity-limits' lists all the entities, their filters, and 'limit' to specify their limit
  249. # to be removed/culled
  250. # -- 'passive-purger' Enables random checking of chunks to see whether they're exceeding limits.
  251. # -- Useful for when you want to prevent lag exploiting
  252. # -- 'passive-cleaning-enabled' Enables the passive-purger
  253. # -- 'check-interval' How often (in ticks, 50MS) should chunks be checked
  254. # -- 'chunk-batch-size' How many chunks at once should be checked
  255. per-entity-chunk-entity-limiter:
  256. enabled: false
  257. entity-limits:
  258. - Squid limit:1
  259. - Zombie limit:2
  260. - Skeleton limit:2
  261. - Creeper limit:2
  262. - Chicken limit:3
  263. - Pig limit:5
  264. - Sheep limit:5
  265. - Cow limit:5
  266. - Horse limit:3 !hasName
  267. - Villager limit:4
  268. - Arrow limit:4 inGround
  269. - Rabbit limit:2
  270. - PufferFish limit:2
  271. - Silverfish limit:2
  272. - TROPICAL_FISH limit:2
  273. - COD limit:2
  274. - DOLPHIN limit:2
  275. - Bat limit:1
  276. passive-cleaner:
  277. passive-cleaning-enabled: false
  278. check-interval: 20
  279. chunk-batch-size: 100
  280.  
  281. #How many mobs should be allowed to spawn globally
  282. # -- 'interval' is the check interval check the current spawn amounts
  283. spawn-limiter:
  284. enabled: false
  285. interval: 15
  286. mobs: 300
  287. animals: 300
  288.  
  289. #Meters your TPS, if it goes to low, run the commands you wrote below!
  290. # -- 'interval' is how often tps-meter will check the TPS
  291. # -- 'tps-trigger' is at what TPS the commands will be ran at
  292. # -- 'tps-recover' is at what TPS should the TPS be considered stable after 'tps-trigger' is executed
  293. # -- 'commands' lists what commands will be executed when tps-tigger is reached
  294. # -- 'recover-commands' lists what commands will be executed when tps-recover is reached
  295. # -- 'trigger-broadcast-message' specifies which message should be broadcasted when tps-trigger runs
  296. # -- 'recover-broadcast-message' specifies which message should be broadcasted when TPS recovers
  297. # -- 'broadcast-enabled' defines whether or not tps-meter should broadcast
  298. tps-meter:
  299. enabled: false
  300. trigger-broadcast-message: '&6[ClearLag] &cThe server is overloaded, executing lag-perventing measures'
  301. recover-broadcast-message: '&6[ClearLag] &aThe server is no longer overloaded!'
  302. broadcast-enabled: false
  303. interval: 15
  304. tps-trigger: 18.0
  305. tps-recover: 19.0
  306. commands:
  307. - 'lagg killmobs'
  308. - 'lagg clear'
  309. - 'lagg halt on'
  310. recover-commands:
  311. - 'lagg halt off'
  312.  
  313. #This is /lagg killmobs, put what you DON'T want removed!
  314. # -- 'remove-named', when FALSE entities with custom names will NOT be removed
  315. # -- 'mob-filter' lists which mobs will be IGNORED during /lagg killmobs
  316. kill-mobs:
  317. remove-named: false
  318. mob-filter:
  319. - Villager
  320. - Wolf
  321. - ARMOR_STAND
  322. - Horse
  323. - Pig
  324. - Chicken
  325. - Cow
  326. - Cat
  327. # - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test"
  328. # - Zombie hasName <- This entity will be filtered if it HAS a name
  329.  
  330. #This nerfs mob-spawners (Natural and player-made)
  331. #-------------------------------------------------
  332. #This goes by chunks rather then spawners. This is to prevent
  333. #a large buildup of mob-spawners within a small region to "bypass"
  334. #your set limit. It also allows for keys to be generated more easily
  335. #increasing the performance
  336. # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner
  337. # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove
  338. # -- the mobs spawned by the mobspawner upon chunk unload (Highly Recommended)
  339. mobspawner:
  340. enabled: false
  341. max-spawn: 4
  342. remove-mobs-on-chunk-unload: true
  343.  
  344. #Dont use if you have CB++ or Spigot!
  345. item-merger:
  346. enabled: false
  347. radius: 6
  348.  
  349. #Auto-removal options
  350. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  351. # -- NOTE: The below 'remove' section applies to this remover!
  352. # -- NOTE: Putting the interval to low will cause issues!
  353. # -- NOTE: To disable "warnings", set it to "warnings: []"
  354. # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default)
  355. #
  356. # !==[ All string values MUST be inside '']==!
  357. #
  358. # -- 'remove-entities' lists what entities should be REMOVED on removal
  359. # -- 'warnings' list warnings to be given out at specified times
  360. # -- 'item-filter' What ground-items should NOT be removed during removal
  361. # -- 'remove-entities' What entities SHOULD be removed during removal
  362. auto-removal:
  363. enabled: true
  364. broadcast-message: '&6| &aУбрано +RemoveAmount объектов!'
  365. broadcast-removal: true
  366. autoremoval-interval: 1060
  367. world-filter:
  368. # - this_world <-This world will be ignored during removal!
  369. boat: false
  370. falling-block: true
  371. experience-orb: true
  372. painting: false
  373. projectile: false
  374. item: true
  375. itemframe: false
  376. minecart: false
  377. primed-tnt: true
  378. item-filter:
  379. remove-entities:
  380. - Boat !isMounted
  381. - Minecart !isMounted
  382. warnings:
  383. - 'time:1000 msg:&4| &cПредупреждение. Объекты будут удалены через &7+remaining &cсекунд!'
  384. - 'time:1040 msg:&4| &cПредупреждение. Объекты будут удалены через &7+remaining &cсекунд!'
  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: false
  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: false
  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