Advertisement
Guest User

ClearLag Paste

a guest
Jun 15th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 12.70 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: true
  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: 7168
  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: true
  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: false
  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: true
  70.   items:
  71.     stone: 60
  72.     grass: 120
  73.     cobblestone: 60
  74.     log: 120
  75.     stone_axe: 60
  76.     stone_pickaxe: 60
  77.     stone_sword: 60
  78.     wooden_axe: 60
  79.     wooden_pickaxe: 60
  80.     wooden_sword: 60
  81.     rotten_flesh: 60
  82.     gravel: 120
  83.     dirt: 60
  84.     leather: 120
  85.     sand: 240
  86.     bone: 60
  87.     beef: 120
  88.     chicken: 120
  89.     rabbit: 120
  90.     salmon: 120
  91.     cactus: 120
  92.     arrow: 60
  93.     PORKCHOP: 120
  94.     potato: 120
  95.  
  96. #Should mobs be nerfed to prevent over-breeding to reduce CPU usage (And possibly raise TPS)
  97. #When mobs are stuck too close, collisions are extremely intensive putting a pretty mean load on the server
  98. # -- 'max-mobs' means how many bably/adult animals are allowed within the 'check-radius'
  99. # -- 'check-radius' is the radius of what clearlag will check for 'max-mobs'
  100. mob-breeding-limiter:
  101.   enabled: true
  102.   max-mobs: 16
  103.   check-radius: 24
  104.  
  105. #Should clearlag purge logs under /logs when the server starts?
  106. # -- 'days-old' means how many days old can the log be to be deleted
  107. log-purger:
  108.   enabled: false
  109.   days-old: 3
  110.  
  111. #What type of entities SHOULD NOT be removed while doing /lagg area?
  112. area-filter:
  113.    - Itemframe
  114.     - Minecart
  115.     - Wolf
  116.     - Villager
  117.     - Horse
  118.     - ARMOR_STAND
  119.     - Ocelot
  120.     - Cat
  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: 10000
  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.   guardian: 10
  151.  
  152. #How long should items/Mobs be left on the ground
  153. # -- live-time's go by ticks (20 ticks a second)
  154. live-time:
  155.   enabled: false
  156.   interval: 10
  157.   mobtimer: false
  158.   itemtimer: false
  159.   arrowtimer: false
  160.   arrowkilltime: 15
  161.   moblivetime: 3000
  162.   itemlivetime: 3000
  163.  
  164. #This option disallows the placement of too many tnt-minecarts
  165. # -- 'radius' is the radius clearlag will check for TNT-Minecarts
  166. tnt-minecart:
  167.   enabled: false
  168.   max: 2
  169.   radius: 6
  170.  
  171. #This option reduces global dispenser fire rate
  172. # -- 'time' is in milliseconds
  173. dispenser-reducer:
  174.   enabled: false
  175.   time: 100
  176.  
  177. #This option reduces the explosions of mass amounts of tnt, and reduces tnt lag
  178. # -- 'check-radius' is the radius clearlag will check for primed TNT
  179. # -- 'max-primed' is the max primed TNT within the radius allowed before clearlag begins to remove
  180. tnt-reducer:
  181.   enabled: false
  182.   check-radius: 5
  183.   max-primed: 3
  184.  
  185. #This option reduces fire spread rate
  186. # -- 'time' is in milliseconds
  187. firespread-reducer:
  188.   enabled: false
  189.   time: 2000
  190.  
  191. #How many entities should one chunk be allowed to hold?
  192. # -- 'entities' lists all the entities that will be counted
  193. #     and possibly removed.
  194. chunk-entity-limiter:
  195.   enabled: true
  196.   limit: 16
  197.   entities:
  198.    - Itemframe
  199.     - Villager
  200.     - Boat
  201.     - Minecart
  202.     - Cow
  203.     - Chicken
  204.     - Pig
  205.     - Sheep
  206.   # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  207.  
  208. #How many mobs should be allowed to spawn globally
  209. # -- 'interval' is the check interval check the current spawn amounts
  210. spawn-limiter:
  211.   enabled: true
  212.   interval: 20
  213.   mobs: 400
  214.   animals: 300
  215.  
  216. #Meters your TPS, if it goes to low, run the commands you wrote below!
  217. # -- 'interval' is how often tps-meter will check the TPS
  218. # -- 'tps-trigger' is at what TPS the commands will be ran at
  219. # -- 'tps-recover' is at what TPS should the TPS be considered stable after 'tps-trigger' is executed
  220. # -- 'commands' lists what commands will be executed when tps-tigger is reached
  221. # -- 'recover-commands' lists what commands will be executed when tps-recover is reached
  222. # -- 'trigger-broadcast-message' specifies which message should be broadcasted when tps-trigger runs
  223. # -- 'recover-broadcast-message' specifies which message should be broadcasted when TPS recovers
  224. # -- 'broadcast-enabled' defines whether or not tps-meter should broadcast
  225. tps-meter:
  226.   enabled: false
  227.   trigger-broadcast-message: '&6[ClearLag] &cThe server is overloaded, executing lag-perventing measures'
  228.   recover-broadcast-message: '&6[ClearLag] &aThe server is no longer overloaded!'
  229.   broadcast-enabled: false
  230.   interval: 60
  231.   tps-trigger: 15.0
  232.   tps-recover: 17.5
  233.   commands:
  234.    - 'lagg killmobs'
  235.     - 'lagg unloadchunks'
  236.   recover-commands:
  237.    - 'lag'
  238.  
  239. #This is /lagg killmobs, put what you DON'T want removed!
  240. # -- 'remove-named', when FALSE entities with custom names will NOT be removed
  241. # -- 'mob-filter' lists which mobs will be IGNORED during /lagg killmobs
  242. kill-mobs:
  243.   remove-named: false
  244.   mob-filter:
  245.   - Villager
  246.    - Wolf
  247. #  - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test"
  248. #  - Zombie hasName <- This entity will be filtered if it HAS a name
  249.    - ARMOR_STAND
  250.    - Horse
  251.    - Pig
  252.    - Chicken
  253.    - Cow
  254.    - Sheep
  255.    - Ocelot
  256.    - Llama
  257.    - SKELETON_HORSE
  258.    - RABBIT
  259.    - PARROT
  260.    - DONKEY
  261.    - IRON_GOLEM
  262.    - MUSHROOM_COW
  263.    - TURTLE
  264.    - DOLPHIN
  265.    - ENDERMITE
  266.    - EVOKER
  267.    - ILLUSIONER
  268.    - LEASH_HITCH
  269.    - MULE
  270.    - POLAR_BEAR
  271.    - PUFFERFISH
  272.    - SHULKER
  273.    - SQUID
  274.    - TROPICAL_FISH
  275.    - VINDICATOR
  276.    - WITHER_SKELETON
  277.    - ZOMBIE_HORSE
  278.    - MINECART
  279.  
  280. #This nerfs mob-spawners (Natural and player-made)
  281. #-------------------------------------------------
  282. #This goes by chunks rather then spawners. This is to prevent
  283. #a large buildup of mob-spawners within a small region to "bypass"
  284. #your set limit. It also allows for keys to be generated more easily
  285. #increasing the performance
  286. # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner
  287. # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove
  288. # --  the mobs spawned by the mobspawner upon chunk unload (Highly Recommended)
  289. mobspawner:
  290.   enabled: true
  291.   max-spawn: 16
  292.   remove-mobs-on-chunk-unload: true
  293.  
  294. #Dont use if you have CB++ or Spigot!
  295. item-merger:
  296.   enabled: false
  297.   radius: 6
  298.  
  299. #Auto-removal options
  300. # -- warnings works like this; time = the time warning should be given, msg = warning message at that time
  301. # -- NOTE: The below 'remove' section applies to this remover!
  302. # -- NOTE: Putting the interval to low will cause issues!
  303. # -- NOTE: To disable "warnings", set it to "warnings: []"
  304. # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default)
  305. #
  306. #        !==[ All string values MUST be inside '']==!
  307. #
  308. # -- 'remove-entities' lists what entities should be REMOVED on removal
  309. # -- 'warnings' list warnings to be given out at specified times
  310. auto-removal:
  311.   enabled: false
  312.   broadcast-message: '&6[ClearLag] &aRemoved +RemoveAmount Entities!'
  313.   broadcast-removal: false
  314.   autoremoval-interval: 432000
  315.   world-filter:
  316.  # - this_world <-This world will be ignored during removal!
  317.   boat: true
  318.   falling-block: true
  319.   experience-orb: true
  320.   painting: false
  321.   projectile: true
  322.   item: true
  323.   itemframe: false
  324.   minecart: false
  325.   primed-tnt: false
  326.   item-filter:
  327.  # - Stone <-This item-id will be ignored during removal!
  328.   # - Grass
  329.   remove-entities:
  330.  # - cow <- This mob-type will be REMOVED during removal!
  331.   # - MINECART_MOB_SPAWNER
  332.   # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds)
  333.   # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted
  334.   # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name
  335.   warnings:
  336.        - 'time:400 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  337.         - 'time:440 msg:&4[ClearLag] &cWarning Ground items will be removed in &7+remaining &cseconds!'
  338.  
  339. #What should be removed during /lagg clear
  340. command-remove:
  341.   world-filter:
  342.  # - this_world <-This world will be ignored during removal!
  343.   broadcast-removal: false
  344.   boat: true
  345.   falling-block: true
  346.   experience-orb: true
  347.   painting: false
  348.   projectile: true
  349.   item: true
  350.   itemframe: false
  351.   minecart: false
  352.   primed-tnt: false
  353.   item-filter:
  354.  # - Stone <-This item-id will be ignored during removal!
  355.   # - Grass
  356.   remove-entities:
  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: true
  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