SHOW:
|
|
- or go back to the newest paste.
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: 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: true | |
43 | disable-natural-entity-spawning: true | |
44 | halted: | |
45 | fire: true | |
46 | fire-burn: true | |
47 | explosion: true | |
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: 15 | |
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: false | |
150 | zombie: 30 | |
151 | skeleton: 30 | |
152 | creeper: 20 | |
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 | # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds) | |
210 | ||
211 | #How many mobs should be allowed to spawn globally | |
212 | # -- 'interval' is the check interval check the current spawn amounts | |
213 | spawn-limiter: | |
214 | enabled: false | |
215 | interval: 15 | |
216 | mobs: 300 | |
217 | animals: 300 | |
218 | ||
219 | #Meters your TPS, if it goes to low, run the commands you wrote below! | |
220 | # -- 'interval' is how often tps-meter will check the TPS | |
221 | # -- 'tps-trigger' is at what TPS the commands will be ran at | |
222 | # -- 'tps-recover' is at what TPS should the TPS be considered stable after 'tps-trigger' is executed | |
223 | # -- 'commands' lists what commands will be executed when tps-tigger is reached | |
224 | # -- 'recover-commands' lists what commands will be executed when tps-recover is reached | |
225 | # -- 'trigger-broadcast-message' specifies which message should be broadcasted when tps-trigger runs | |
226 | # -- 'recover-broadcast-message' specifies which message should be broadcasted when TPS recovers | |
227 | # -- 'broadcast-enabled' defines whether or not tps-meter should broadcast | |
228 | tps-meter: | |
229 | enabled: false | |
230 | trigger-broadcast-message: '&6[ClearLag] &cThe server is overloaded, executing lag-perventing measures' | |
231 | recover-broadcast-message: '&6[ClearLag] &aThe server is no longer overloaded!' | |
232 | broadcast-enabled: false | |
233 | interval: 15 | |
234 | tps-trigger: 14.0 | |
235 | tps-recover: 19.0 | |
236 | commands: | |
237 | - 'lagg killmobs' | |
238 | - 'lagg clear' | |
239 | - 'lagg halt' | |
240 | recover-commands: | |
241 | - 'lagg halt' | |
242 | ||
243 | #This is /lagg killmobs, put what you DON'T want removed! | |
244 | # -- 'remove-named', when FALSE entities with custom names will NOT be removed | |
245 | # -- 'mob-filter' lists which mobs will be IGNORED during /lagg killmobs | |
246 | kill-mobs: | |
247 | remove-named: false | |
248 | mob-filter: | |
249 | - Villager | |
250 | - Wolf | |
251 | # - Pig !name="Test" <- This entity will filtered if the name does NOT equal "Test" | |
252 | # - Zombie hasName <- This entity will be filtered if it HAS a name | |
253 | - ARMOR_STAND | |
254 | - Horse | |
255 | ||
256 | #This nerfs mob-spawners (Natural and player-made) | |
257 | #------------------------------------------------- | |
258 | #This goes by chunks rather then spawners. This is to prevent | |
259 | #a large buildup of mob-spawners within a small region to "bypass" | |
260 | #your set limit. It also allows for keys to be generated more easily | |
261 | #increasing the performance | |
262 | # -- 'max-spawn' is the maximum mobs allowed to spawn by a mob-spawner | |
263 | # -- 'remove-mobs-on-chunk-unload' is whether or not Clearlag should remove | |
264 | # -- the mobs spawned by the mobspawner upon chunk unload (Highly Recommended) | |
265 | mobspawner: | |
266 | enabled: false | |
267 | max-spawn: 4 | |
268 | remove-mobs-on-chunk-unload: true | |
269 | ||
270 | #Dont use if you have CB++ or Spigot! | |
271 | item-merger: | |
272 | enabled: false | |
273 | radius: 6 | |
274 | ||
275 | #Auto-removal options | |
276 | # -- warnings works like this; time = the time warning should be given, msg = warning message at that time | |
277 | # -- NOTE: The below 'remove' section applies to this remover! | |
278 | # -- NOTE: Putting the interval to low will cause issues! | |
279 | # -- NOTE: To disable "warnings", set it to "warnings: []" | |
280 | # -- NOTE: bukkit.broadcast.user permission will allow users to see broadcasts (If not enabled by default) | |
281 | # | |
282 | # !==[ All string values MUST be inside '']==! | |
283 | # | |
284 | # -- 'remove-entities' lists what entities should be REMOVED on removal | |
285 | # -- 'warnings' list warnings to be given out at specified times | |
286 | auto-removal: | |
287 | enabled: true | |
288 | broadcast-message: '&6[ClearLag] &aRemoved +RemoveAmount Entities!' | |
289 | broadcast-removal: true | |
290 | autoremoval-interval: 400 | |
291 | world-filter: | |
292 | # - this_world <-This world will be ignored during removal! | |
293 | boat: true | |
294 | falling-block: true | |
295 | experience-orb: true | |
296 | painting: false | |
297 | projectile: true | |
298 | item: true | |
299 | itemframe: false | |
300 | minecart: false | |
301 | primed-tnt: true | |
302 | item-filter: | |
303 | # - Stone <-This item-id will be ignored during removal! | |
304 | # - Grass | |
305 | remove-entities: | |
306 | # - cow <- This mob-type will be REMOVED during removal! | |
307 | # - MINECART_MOB_SPAWNER | |
308 | # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds) | |
309 | # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted | |
310 | # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name | |
311 | warnings: | |
312 | - 'time:380 msg:&b[InteliRadar+] &cクリアーラグ接近! 到達予想時間残り&l+remaining&c秒です!' | |
313 | - 'time:440 msg:&b[InteliRadar+] &cレーダーにクリアーラグが入った! 到達予想時間は&l+remaining&c秒' | |
314 | ||
315 | #What should be removed during /lagg clear | |
316 | command-remove: | |
317 | world-filter: | |
318 | # - this_world <-This world will be ignored during removal! | |
319 | broadcast-removal: false | |
320 | boat: true | |
321 | falling-block: true | |
322 | experience-orb: true | |
323 | painting: false | |
324 | projectile: true | |
325 | item: true | |
326 | itemframe: false | |
327 | minecart: true | |
328 | primed-tnt: true | |
329 | item-filter: | |
330 | # - Stone <-This item-id will be ignored during removal! | |
331 | # - Grass | |
332 | remove-entities: | |
333 | # - cow <- This mob-type will be REMOVED during removal! | |
334 | # - MINECART_MOB_SPAWNER | |
335 | # - Pig liveTime=100 <- This mob will be REMOVED if it's been alive for 100 ticks (5 seconds) | |
336 | # - Minecart !isMounted <- This entity will be REMOVED if it's NOT mounted | |
337 | # - Wolf !hasName <- This entity will be REMOVED if it doesn't have a name | |
338 | ||
339 | limit: | |
340 | enabled: true | |
341 | max: 77 | |
342 | - | check-interval: 100 |
342 | + | check-interval: 30 |
343 | broadcast-message: '&4[非常事態] &cエンティティ上限77に達したため 緊急措置を取りました' | |
344 | world-filter: | |
345 | # - this_world <-This world will be ignored during removal! | |
346 | broadcast-removal: true | |
347 | boat: true | |
348 | falling-block: true | |
349 | experience-orb: false | |
350 | painting: false | |
351 | projectile: false | |
352 | item: true | |
353 | itemframe: false | |
354 | minecart: true | |
355 | primed-tnt: true | |
356 | item-filter: | |
357 | # - Stone | |
358 | # - Grass <-This item-id will be ignored during removal! |