Advertisement
Guest User

Untitled

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