Browse Source

Merge pull request #7 from granny/cleanup

Cleanup code and migrate data to yml file. Thank you granny for the work 😄
pull/10/head
Purpur 3 years ago
committed by GitHub
parent
commit
dce3b43b10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1341
      cogs/timings.py
  2. 502
      cogs/timings_check.yml

1341
cogs/timings.py

File diff suppressed because it is too large

502
cogs/timings_check.yml

@ -0,0 +1,502 @@
---
# raiders_entity_activation_range = int(spigot["world-settings"]["default"]["entity-activation-range"]["raiders"])
# flying_monsters_entity_activation_range = int(spigot["world-settings"]["default"]["entity-activation-range"]["flying-monsters"])
# wake_up_inactive_villagers_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["villagers-every"])
# wake_up_inactive_animals_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["animals-every"])
# wake_up_inactive_flying_monsters_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["flying-monsters-every"])
# wake_up_inactive_monsters_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["monsters-every"])
version: "1.16.4"
servers:
- name: "yatopia"
prefix: "❌ "
value: |-
Yatopia is prone to bugs.
Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).
- name: "paper"
prefix: "||❌ "
suffix: "||"
value: |-
||Purpur has more optimizations but is generally less supported.
Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).||
plugins:
paper:
ClearLag:
prefix: "⚠ "
value: |-
Plugins that claim to remove lag actually cause more lag.
Remove ClearLag.
LagAssist:
prefix: "⚠ "
value: |-
LagAssist should only be used for analytics and preventative measures.
All other features of the plugin should be disabled.
NoChunkLag:
prefix: "⚠ "
value: |-
Plugins that claim to remove lag actually cause more lag.
Remove NoChunkLag.
ServerBooster:
prefix: "⚠ "
value: |-
Plugins that claim to remove lag actually cause more lag.
Remove ServerBooster.
MobLimiter:
prefix: "⚠ "
value: |-
You probably don't need MobLimiter as Bukkit already has its features.
Remove MobLimiter.
BookLimiter:
prefix: "⚠ "
value: |-
You probably don't need BookLimiter as Paper already has its features.
Remove BookLimiter.
LimitPillagers:
prefix: "⚠ "
value: |-
You probably don't need LimitPillagers as Paper already adds its features.
Remove LimitPillagers.
VillagerOptimiser:
prefix: "⚠ "
value: |-
You probably don't need VillagerOptimiser as Paper already adds its features.
See entity-activation-range in [spigot.yml](http://bit.ly/spiconf).
StackMob:
prefix: "⚠ "
value: |-
Stacking plugins actually cause more lag.
Remove StackMob.
Stacker:
prefix: "⚠ "
value: |-
Stacking plugins actually cause more lag.
Remove Stacker.
MobStacker:
prefix: "⚠ "
value: |-
Stacking plugins actually cause more lag.
Remove MobStacker.
WildStacker:
prefix: "⚠ "
value: |-
Stacking plugins actually cause more lag.
Remove WildStacker.
SuggestionBlocker:
prefix: "⚠ "
value: |-
You probably don't need SuggestionBlocker as Spigot already adds its features.
Set tab-complete to -1 in [spigot.yml](http://bit.ly/spiconf).
FastAsyncWorldEdit:
prefix: "⚠ "
value: |-
FAWE can corrupt your world.
Consider replacing FAWE with [Worldedit](https://enginehub.org/worldedit/#downloads).
CMI:
prefix: "⚠ "
value: |-
CMI is a buggy plugin.
Consider replacing CMI with [EssentialsX](https://essentialsx.net/downloads.html).
Spartan:
prefix: "⚠ "
value: |-
Spartan is a laggy anticheat.
Consider replacing it with [Matrix](https://matrix.rip/), [NCP](https://ci.codemc.io/job/Updated-NoCheatPlus/job/Updated-NoCheatPlus/), or [AAC](https://www.spigotmc.org/resources/aac-advanced-anti-cheat-hack-kill-aura-blocker.6442/).
IllegalStack:
prefix: "⚠ "
value: |-
You probably don't need IllegalStack as Paper already has its features.
Remove IllegalStack.
ExploitFixer:
prefix: "⚠ "
value: |-
You probably don't need ExploitFixer as Paper already has its features.
Remove ExploitFixer.
EntityTrackerFixer:
prefix: "⚠ "
value: |-
You probably don't need EntityTrackerFixer as Paper already has its features.
Remove EntityTrackerFixer.
Orebfuscator:
prefix: "⚠ "
value: |-
You probably don't need Orebfuscator as Paper already has its features.
Remove Orebfuscator.
ImageOnMap:
prefix: "⚠ "
value: |-
This plugin has a [memory leak](https://github.com/zDevelopers/ImageOnMap/issues/104). If it is not essential, you should remove it.
Consider replacing it with [an alternative](https://www.spigotmc.org/resources/drmap.87368/).
CrazyActions:
prefix: "⚠ "
value: |-
CrazyAuctions is a laggy plugin, even according to the developer.
Consider replacing it with [AuctionHouse](https://www.spigotmc.org/resources/auctionhouse.61836/).
GroupManager:
prefix: "⚠ "
value: |-
GroupManager is an outdated permission plugin.
Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).
PermissionsEx:
prefix: "⚠ "
value: |-
PermissionsEx is an outdated permission plugin.
Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).
bPermissions:
prefix: "⚠ "
value: |-
bPermissions is an outdated permission plugin.
Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).
PhantomSMP:
- expressions:
- paper["world-settings"]["default"]["phantoms-only-attack-insomniacs"] == "false"
prefix: "⚠ "
value: |-
You probably don't need PhantomSMP as Paper already has its features.
Remove PhantomSMP.
- expressions:
- paper["world-settings"]["default"]["phantoms-only-attack-insomniacs"] == "true"
prefix: "⚠ "
value: |-
You probably don't need PhantomSMP as Paper already has its features.
Enable phantoms-only-attack-insomniacs in [paper.yml](http://bit.ly/paperconf).
purpur:
SilkSpawners:
prefix: "⚠ "
value: |-
You probably don't need SilkSpawners as Purpur already has its features.
Remove SilkSpawners.
MineableSpawners:
prefix: "⚠ "
value: |-
You probably don't need MineableSpawners as Purpur already has its features.
Remove MineableSpawners.
VillagerLobotomizatornator:
prefix: "⚠ "
value: |-
You probably don't need VillagerLobotomizatornator as Purpur already adds its features.
Enable villager.lobotomize.enabled in [purpur.yml](http://bit.ly/purpurc).
config:
server.properties:
online-mode:
- expressions:
- not server_properties["online-mode"]
- spigot["settings"]["bungeecord"] == "false"
- paper["settings"]["velocity-support"]["online-mode"] == "false" or paper["settings"]["velocity-support"]["enabled"] == "false"
prefix: "❌ "
value: "Enable this in [server.properties](http://bit.ly/servprop) for security."
network-compression-threshold:
- expressions:
- int(server_properties["network-compression-threshold"]) <= 256
- spigot["settings"]["bungeecord"] == "false"
prefix: "❌ "
value: "Increase this in [server.properties](http://bit.ly/servprop). Recommended: 512."
- expressions:
- int(server_properties["network-compression-threshold"]) != -1
- spigot["settings"]["bungeecord"] == "true"
prefix: "❌ "
value: "Set this to -1 in [server.properties](http://bit.ly/servprop) for a bungee server like yours."
bukkit:
chunk-gc.period-in-ticks:
- expressions:
- int(bukkit["chunk-gc"]["period-in-ticks"]) >= 600
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 400."
ticks-per.monster-spawns:
- expressions:
- int(bukkit["ticks-per"]["monster-spawns"]) == 1
prefix: "❌ "
value: "Increase this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 4."
spawn-limits.monsters:
- expressions:
- int(bukkit["spawn-limits"]["monsters"]) >= 70
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 15."
spawn-limits.water-ambient:
- expressions:
- int(bukkit["spawn-limits"]["water-ambient"]) >= 20
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2."
spawn-limits.ambient:
- expressions:
- int(bukkit["spawn-limits"]["ambient"]) >= 15
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 1."
spawn-limits.animals:
- expressions:
- int(bukkit["spawn-limits"]["animals"]) >= 10
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 3."
spawn-limits.water-animals:
- expressions:
- int(bukkit["spawn-limits"]["water-animals"]) >= 15
prefix: "❌ "
value: "Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2."
spigot:
view-distance:
- expressions:
- int(server_properties["view-distance"]) >= 10
- spigot["world-settings"]["default"]["view-distance"] == "default"
prefix: "❌ "
value: "Decrease this from default (10) in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 3."
entity-activation-range.animals:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["animals"]) >= 32
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 6."
entity-activation-range.monsters:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["monsters"]) >= 32
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 16."
entity-activation-range.misc:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["misc"]) >= 16
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 4."
entity-activation-range.water:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["water"]) >= 16
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 12."
entity-activation-range.villagers:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["villagers"]) >= 32
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 16."
entity-activation-range.tick-inactive-villagers:
- expressions:
- spigot["world-settings"]["default"]["entity-activation-range"]["tick-inactive-villagers"] == "true"
prefix: "❌ "
value: "Disable this in [spigot.yml](http://bit.ly/spiconf)."
nerf-spawner-mobs:
- expressions:
- spigot["world-settings"]["default"]["nerf-spawner-mobs"] == "false"
prefix: "❌ "
value: "Enable this in [spigot.yml](http://bit.ly/spiconf)."
entity-activation-range.wake-up-inactive.villagers-for:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["villagers-for"]) >= 100
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 20."
entity-activation-range.wake-up-inactive.flying-monsters-for:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["flying-monsters-for"]) >= 100
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 60."
entity-activation-range.wake-up-inactive.villagers-max-per-tick:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["villagers-max-per-tick"]) >= 4
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 1."
entity-activation-range.wake-up-inactive.animals-for:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["animals-for"]) >= 100
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 40."
entity-activation-range.wake-up-inactive.monsters-max-per-tick:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["monsters-max-per-tick"]) >= 8
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 4."
entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["flying-monsters-max-per-tick"]) >= 8
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 1."
entity-activation-range.wake-up-inactive.animals-max-per-tick:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["animals-max-per-tick"]) >= 4
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 2."
entity-activation-range.wake-up-inactive.monsters-for:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["monsters-for"]) >= 100
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 60."
arrow-despawn-rate:
- expressions:
- int(spigot["world-settings"]["default"]["arrow-despawn-rate"]) >= 1200
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 300."
merge-radius.item:
- expressions:
- float(spigot["world-settings"]["default"]["merge-radius"]["item"]) <= 2.5
prefix: "❌ "
value: "Increase this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 4.0."
merge-radius.exp:
- expressions:
- float(spigot["world-settings"]["default"]["merge-radius"]["exp"]) <= 3.0
prefix: "❌ "
value: "Increase this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 6.0."
max-entity-collisions:
- expressions:
- int(spigot["world-settings"]["default"]["max-entity-collisions"]) >= 8
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 2."
mob-spawn-range:
- expressions:
- spigot["world-settings"]["default"]["view-distance"] == "default"
- int(spigot["world-settings"]["default"]["mob-spawn-range"]) >= 8
- int(server_properties["view-distance"]) <= 6
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: {int(server_properties[\"view-distance\"]) - 1}."
- expressions:
- int(spigot["world-settings"]["default"]["mob-spawn-range"]) >= 8
- int(spigot["world-settings"]["default"]["view-distance"]) <= 6
prefix: "❌ "
value: "Decrease this in [spigot.yml](http://bit.ly/spiconf).\nRecommended: {int(spigot[\"world-settings\"][\"default\"][\"view-distance\"]) - 1}."
paper:
max-auto-save-chunks-per-tick:
- expressions:
- int(paper["world-settings"]["default"]["max-auto-save-chunks-per-tick"]) >= 24
prefix: "❌ "
value: "Decrease this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 6."
optimize-explosions:
- expressions:
- paper["world-settings"]["default"]["optimize-explosions"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
mob-spawner-tick-rate:
- expressions:
- int(paper["world-settings"]["default"]["mob-spawner-tick-rate"]) == 1
prefix: "❌ "
value: "Increase this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 2."
game-mechanics.disable-chest-cat-detection:
- expressions:
- paper["world-settings"]["default"]["game-mechanics"]["disable-chest-cat-detection"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)"
container-update-tick-rate:
- expressions:
- int(paper["world-settings"]["default"]["container-update-tick-rate"]) == 1
prefix: "❌ "
value: "Increase this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 3."
grass-spread-tick-rate:
- expressions:
- int(paper["world-settings"]["default"]["grass-spread-tick-rate"]) == 1
prefix: "❌ "
value: "Increase this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 4."
despawn-ranges.soft:
- expressions:
- int(paper["world-settings"]["default"]["despawn-ranges"]["soft"]) >= 32
prefix: "❌ "
value: "Decrease this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 28."
despawn-ranges.hard:
- expressions:
- int(paper["world-settings"]["default"]["despawn-ranges"]["hard"]) >= 128
prefix: "❌ "
value: "Decrease this in [paper.yml](http://bit.ly/paperconf).\nRecommended: 48."
hopper.disable-move-event:
- expressions:
- paper["world-settings"]["default"]["hopper"]["disable-move-event"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)"
non-player-arrow-despawn-rate:
- expressions:
- int(paper["world-settings"]["default"]["non-player-arrow-despawn-rate"]) == -1
prefix: "❌ "
value: "Set a value in [paper.yml](http://bit.ly/paperconf).\nRecommended: 60"
creative-arrow-despawn-rate:
- expressions:
- int(paper["world-settings"]["default"]["creative-arrow-despawn-rate"]) == -1
prefix: "❌ "
value: "Set a value in [paper.yml](http://bit.ly/paperconf).\nRecommended: 60"
non-player-arrow-despawn-rate:
- expressions:
- paper["world-settings"]["default"]["prevent-moving-into-unloaded-chunks"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
use-faster-eigencraft-redstone:
- expressions:
- paper["world-settings"]["default"]["use-faster-eigencraft-redstone"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
fix-climbing-bypassing-cramming-rule:
- expressions:
- paper["world-settings"]["default"]["fix-climbing-bypassing-cramming-rule"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
armor-stands-do-collision-entity-lookups:
- expressions:
- paper["world-settings"]["default"]["armor-stands-do-collision-entity-lookups"] == "true"
prefix: "❌ "
value: "Disable this in [paper.yml](http://bit.ly/paperconf)."
armor-stands-tick:
- expressions:
- paper["world-settings"]["default"]["armor-stands-tick"] == "true"
- '"PetBlocks" not in plugins'
- '"BlockBalls" not in plugins'
- '"ArmorStandTools" not in plugins'
prefix: "❌ "
value: "Disable this in [paper.yml](http://bit.ly/paperconf)."
per-player-mob-spawns:
- expressions:
- paper["world-settings"]["default"]["per-player-mob-spawns"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
alt-item-despawn-rate.enabled:
- expressions:
- paper["world-settings"]["default"]["alt-item-despawn-rate"]["enabled"] == "false"
prefix: "❌ "
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
enable-treasure-maps:
- expressions:
- paper["world-settings"]["default"]["enable-treasure-maps"] == "true"
prefix: "❌ "
value: "Disable this in [paper.yml](http://bit.ly/paperconf). Why? Generating treasure maps is extremely expensive and can hang a server if the structure it's trying to locate is really far away."
projectile-load-save-per-chunk-limit:
- expressions:
- int(paper["world-settings"]["default"]["projectile-load-save-per-chunk-limit"]) == -1
prefix: "❌ "
value: "Set a value in [paper.yml](http://bit.ly/paperconf). Recommended: 8."
purpur:
settings.use-alternate-keepalive:
- expressions:
- purpur["settings"]["use-alternate-keepalive"] == "false"
- '"TCPShield" not in plugins'
prefix: "❌ "
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
- expressions:
- purpur["settings"]["use-alternate-keepalive"] == "true"
- '"TCPShield" in plugins'
prefix: "❌ "
value: "Disable this in [purpur.yml](http://bit.ly/purpurc). It can cause issues with TCPShield"
settings.dont-send-useless-entity-packets:
- expressions:
- purpur["settings"]["dont-send-useless-entity-packets"] == "false"
prefix: "❌ "
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
mobs.dolphin.disable-treasure-searching:
- expressions:
- purpur["world-settings"]["default"]["mobs"]["dolphin"]["disable-treasure-searching"] == "false"
prefix: "❌ "
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
mobs.villager.brain-ticks:
- expressions:
- int(purpur["world-settings"]["default"]["mobs"]["villager"]["brain-ticks"]) == 1
prefix: "❌ "
value: "Increase this in [purpur.yml](http://bit.ly/purpurc).\nRecommended: 4."
mobs.villager.spawn-iron-golem.radius:
- expressions:
- int(purpur["world-settings"]["default"]["mobs"]["villager"]["spawn-iron-golem"]["radius"]) == 0
prefix: "❌ "
value: "Increase this in [purpur.yml](http://bit.ly/purpurc).\nRecommended: 5."
mobs.zombie.aggressive-towards-villager-when-lagging:
- expressions:
- purpur["world-settings"]["default"]["mobs"]["zombie"]["aggressive-towards-villager-when-lagging"] == "true"
prefix: "❌ "
value: "Disable this in [purpur.yml](http://bit.ly/purpurc)."
gameplay-mechanics.entities-can-use-portals:
- expressions:
- purpur["world-settings"]["default"]["gameplay-mechanics"]["entities-can-use-portals"] == "true"
prefix: "❌ "
value: "Disable this in [purpur.yml](http://bit.ly/purpurc) to prevent players from creating chunk anchors."
mobs.villager.lobotomize.enabled:
- expressions:
- purpur["world-settings"]["default"]["mobs"]["villager"]["lobotomize"]["enabled"] == "false"
prefix: "❌ "
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
gameplay-mechanics.player.teleport-if-outside-border:
- expressions:
- purpur["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"] == "false"
prefix: "❌ "
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
Loading…
Cancel
Save