Advertisement
LuisAlts

Untitled

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