Advertisement
Guest User

Untitled

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