Browse Source

Update timings.py

master
DrBot7 4 years ago
committed by GitHub
parent
commit
fbc313aa86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 239
      cogs/timings.py

239
cogs/timings.py

@ -22,7 +22,7 @@ class Timings(commands.Cog):
"https://timings.spigotmc.org/?url="): "https://timings.spigotmc.org/?url="):
embed_var = discord.Embed(title="Timings Analysis", color=0x55ffff) embed_var = discord.Embed(title="Timings Analysis", color=0x55ffff)
embed_var.add_field(name="❌ Spigot", embed_var.add_field(name="❌ Spigot",
value="Spigot timings have limited information. Upgrade to [Purpur](https://purpur.pl3x.net/downloads) for the most accurate timings analysis.")
value="Spigot timings have limited information. Switch to [Purpur](https://purpur.pl3x.net/downloads) for the best timings analysis.")
embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url) embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url)
embed_var.url = timings_url embed_var.url = timings_url
await message.reply(embed=embed_var) await message.reply(embed=embed_var)
@ -39,8 +39,16 @@ class Timings(commands.Cog):
embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url) embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url)
embed_var.url = timings_url embed_var.url = timings_url
r = requests.get(timings_json).json()
if r is None:
r1 = requests.get(timings_json).json()
if r1 is None:
embed_var.add_field(name="❌ Invalid report",
value="Create a new timings report.")
await message.reply(embed=embed_var)
return
timings_url = timings_url + "&raw=1"
r2 = requests.get(timings_url).json()
if r2 is None:
embed_var.add_field(name="❌ Invalid report", embed_var.add_field(name="❌ Invalid report",
value="Create a new timings report.") value="Create a new timings report.")
await message.reply(embed=embed_var) await message.reply(embed=embed_var)
@ -48,19 +56,18 @@ class Timings(commands.Cog):
unchecked = 0 unchecked = 0
try: try:
version = r["timingsMaster"]["version"]
version = r1["timingsMaster"]["version"]
if "1.16.4" not in version: if "1.16.4" not in version:
embed_var.add_field(name="❌ Legacy Build", embed_var.add_field(name="❌ Legacy Build",
value="You are using " + version + ". Update to 1.16.4.") value="You are using " + version + ". Update to 1.16.4.")
using_yatopia = "yatopia" in r["timingsMaster"]["config"]
using_yatopia = "yatopia" in r1["timingsMaster"]["config"]
if using_yatopia: if using_yatopia:
embed_var.add_field(name="❌ Yatopia", embed_var.add_field(name="❌ Yatopia",
value="Yatopia is prone to bugs. " value="Yatopia is prone to bugs. "
"Consider using [Purpur](https://purpur.pl3x.net/downloads).") "Consider using [Purpur](https://purpur.pl3x.net/downloads).")
elif "Paper" in version: elif "Paper" in version:
embed_var.add_field(name="||❌ Paper||", embed_var.add_field(name="||❌ Paper||",
value="||Purpur has more optimizations but is generally less supported. "
"Consider using [Purpur](https://purpur.pl3x.net/downloads).||")
value="||Purpur has more optimizations. Consider using [Purpur](https://purpur.pl3x.net/downloads).||")
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
except: except:
@ -68,10 +75,10 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
online_mode = r["timingsMaster"]["onlinemode"]
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
velocity_online_mode = r["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["online-mode"]
velocity_enabled = r["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["enabled"]
online_mode = r1["timingsMaster"]["onlinemode"]
bungeecord = r1["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
velocity_online_mode = r1["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["online-mode"]
velocity_enabled = r1["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["enabled"]
if not online_mode and bungeecord == "false" and (velocity_online_mode == "false" or velocity_enabled == "false"): if not online_mode and bungeecord == "false" and (velocity_online_mode == "false" or velocity_enabled == "false"):
embed_var.add_field(name="❌ online-mode", embed_var.add_field(name="❌ online-mode",
@ -83,7 +90,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
timing_cost = int(r["timingsMaster"]["system"]["timingcost"])
timing_cost = int(r1["timingsMaster"]["system"]["timingcost"])
if timing_cost > 300: if timing_cost > 300:
embed_var.add_field(name="❌ Timingcost", embed_var.add_field(name="❌ Timingcost",
value="Your timingcost is " + str(timing_cost) + ". Find a [better host](https://www.birdflop.com).") value="Your timingcost is " + str(timing_cost) + ". Find a [better host](https://www.birdflop.com).")
@ -94,7 +101,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
jvm_version = r["timingsMaster"]["system"]["jvmversion"]
jvm_version = r1["timingsMaster"]["system"]["jvmversion"]
if jvm_version.startswith("1.8.") or jvm_version.startswith("9.") or jvm_version.startswith("10."): if jvm_version.startswith("1.8.") or jvm_version.startswith("9.") or jvm_version.startswith("10."):
embed_var.add_field(name="❌ Java Version", embed_var.add_field(name="❌ Java Version",
value="You are using Java " + jvm_version + ". Update to [Java 11](https://adoptopenjdk.net/installation.html).") value="You are using Java " + jvm_version + ". Update to [Java 11](https://adoptopenjdk.net/installation.html).")
@ -105,9 +112,9 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
flags = r["timingsMaster"]["system"]["flags"]
flags = r1["timingsMaster"]["system"]["flags"]
if "-XX:+UseZGC" in flags: if "-XX:+UseZGC" in flags:
jvm_version = r["timingsMaster"]["system"]["jvmversion"]
jvm_version = r1["timingsMaster"]["system"]["jvmversion"]
java_version = jvm_version.split(".")[0] java_version = jvm_version.split(".")[0]
if int(java_version) < 14: if int(java_version) < 14:
embed_var.add_field(name="❌ Java " + java_version, embed_var.add_field(name="❌ Java " + java_version,
@ -157,7 +164,7 @@ class Timings(commands.Cog):
embed_var.add_field(name="❌ Invalid Configuration", embed_var.add_field(name="❌ Invalid Configuration",
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
cpu = int(r["timingsMaster"]["system"]["cpu"])
cpu = int(r1["timingsMaster"]["system"]["cpu"])
if cpu == 1: if cpu == 1:
embed_var.add_field(name="❌ Threads", embed_var.add_field(name="❌ Threads",
value="You have only " + str(cpu) + " thread. Find a [better host](https://www.birdflop.com).") value="You have only " + str(cpu) + " thread. Find a [better host](https://www.birdflop.com).")
@ -171,7 +178,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
plugins = r["timingsMaster"]["plugins"]
plugins = r1["timingsMaster"]["plugins"]
if "ClearLag" in plugins: if "ClearLag" in plugins:
embed_var.add_field(name="❌ ClearLag", embed_var.add_field(name="❌ ClearLag",
value="Plugins that claim to remove lag actually cause more lag. " value="Plugins that claim to remove lag actually cause more lag. "
@ -270,7 +277,7 @@ class Timings(commands.Cog):
embed_var.add_field(name="❌ DisableJoinMessage", embed_var.add_field(name="❌ DisableJoinMessage",
value="You probably don't need DisableJoinMessage because Essentials already has its features. ") value="You probably don't need DisableJoinMessage because Essentials already has its features. ")
for plugin in plugins: for plugin in plugins:
if "songoda" in r["timingsMaster"]["plugins"][plugin]["authors"].casefold():
if "songoda" in r1["timingsMaster"]["plugins"][plugin]["authors"].casefold():
if plugin == "EpicHeads": if plugin == "EpicHeads":
embed_var.add_field(name="❌ EpicHeads", embed_var.add_field(name="❌ EpicHeads",
value="This plugin was made by Songoda. Songoda resources are poorly developed and often cause problems. You should find an alternative such as [HeadsPlus](spigotmc.org/resources/headsplus-»-1-8-1-16-4.40265/) or [HeadDatabase](https://www.spigotmc.org/resources/head-database.14280/).") value="This plugin was made by Songoda. Songoda resources are poorly developed and often cause problems. You should find an alternative such as [HeadsPlus](spigotmc.org/resources/headsplus-»-1-8-1-16-4.40265/) or [HeadDatabase](https://www.spigotmc.org/resources/head-database.14280/).")
@ -288,9 +295,9 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
using_purpur = "purpur" in r["timingsMaster"]["config"]
using_purpur = "purpur" in r1["timingsMaster"]["config"]
if using_purpur: if using_purpur:
plugins = r["timingsMaster"]["plugins"]
plugins = r1["timingsMaster"]["plugins"]
if "SilkSpawners" in plugins: if "SilkSpawners" in plugins:
embed_var.add_field(name="❌ SilkSpawners", embed_var.add_field(name="❌ SilkSpawners",
value="You probably don't need SilkSpawners as Purpur already has its features. " value="You probably don't need SilkSpawners as Purpur already has its features. "
@ -310,9 +317,9 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
plugins = r["timingsMaster"]["plugins"]
plugins = r1["timingsMaster"]["plugins"]
if "PhantomSMP" in plugins: if "PhantomSMP" in plugins:
phantoms_only_insomniacs = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
phantoms_only_insomniacs = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"phantoms-only-attack-insomniacs"] "phantoms-only-attack-insomniacs"]
if phantoms_only_insomniacs == "false": if phantoms_only_insomniacs == "false":
embed_var.add_field(name="❌ PhantomSMP", embed_var.add_field(name="❌ PhantomSMP",
@ -330,8 +337,8 @@ class Timings(commands.Cog):
try: try:
network_compression_threshold = int( network_compression_threshold = int(
r["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"])
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
r1["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"])
bungeecord = r1["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
if network_compression_threshold <= 256 and bungeecord == "false": if network_compression_threshold <= 256 and bungeecord == "false":
embed_var.add_field(name="❌ network-compression-threshold", embed_var.add_field(name="❌ network-compression-threshold",
value="Increase this in [server.properties](http://bit.ly/servprop). Recommended: 512.") value="Increase this in [server.properties](http://bit.ly/servprop). Recommended: 512.")
@ -345,8 +352,26 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
spigot_view_distance = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"]
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"])
using_ntvd = True
worlds = r2["worlds"]
for world in worlds:
tvd = int(r2["worlds"][world]["ticking-distance"])
ntvd = int(r2["worlds"][world]["notick-viewdistance"])
if ntvd >= tvd >= 4:
using_ntvd = False
if not using_ntvd:
embed_var.add_field(name="❌ no-tick-view-distance",
value="Set a value in [paper.yml](http://bit.ly/paperconf). Recommended: " + str(tvd) + ". And reduce view-distance from default (" + str(tvd) + ") in [spigot.yml](http://bit.ly/spiconf). Recommended: 3.")
except KeyError:
print("KeyError")
unchecked = unchecked + 1
except:
embed_var.add_field(name="❌ Invalid Configuration",
value="At least one of your configuration files had an invalid data type.")
try:
spigot_view_distance = r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"]
view_distance = int(r1["timingsMaster"]["config"]["server.properties"]["view-distance"])
if view_distance >= 10 and spigot_view_distance == "default": if view_distance >= 10 and spigot_view_distance == "default":
embed_var.add_field(name="❌ view-distance", embed_var.add_field(name="❌ view-distance",
value="Decrease this from default (10) in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this from default (10) in [spigot.yml](http://bit.ly/spiconf). "
@ -358,7 +383,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
chunk_gc_period = int(r["timingsMaster"]["config"]["bukkit"]["chunk-gc"]["period-in-ticks"])
chunk_gc_period = int(r1["timingsMaster"]["config"]["bukkit"]["chunk-gc"]["period-in-ticks"])
if chunk_gc_period >= 600: if chunk_gc_period >= 600:
embed_var.add_field(name="❌ chunk-gc.period-in-ticks", embed_var.add_field(name="❌ chunk-gc.period-in-ticks",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 400.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 400.")
@ -369,7 +394,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
ticks_per_monster_spawns = int(r["timingsMaster"]["config"]["bukkit"]["ticks-per"]["monster-spawns"])
ticks_per_monster_spawns = int(r1["timingsMaster"]["config"]["bukkit"]["ticks-per"]["monster-spawns"])
if ticks_per_monster_spawns == 1: if ticks_per_monster_spawns == 1:
embed_var.add_field(name="❌ ticks-per.monster-spawns", embed_var.add_field(name="❌ ticks-per.monster-spawns",
value="Increase this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 4.") value="Increase this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 4.")
@ -380,7 +405,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
monsters_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["monsters"])
monsters_spawn_limit = int(r1["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["monsters"])
if monsters_spawn_limit >= 70: if monsters_spawn_limit >= 70:
embed_var.add_field(name="❌ spawn-limits.monsters", embed_var.add_field(name="❌ spawn-limits.monsters",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 15.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 15.")
@ -391,7 +416,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
water_ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-ambient"])
water_ambient_spawn_limit = int(r1["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-ambient"])
if water_ambient_spawn_limit >= 20: if water_ambient_spawn_limit >= 20:
embed_var.add_field(name="❌ spawn-limits.water-ambient", embed_var.add_field(name="❌ spawn-limits.water-ambient",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2.")
@ -402,7 +427,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["ambient"])
ambient_spawn_limit = int(r1["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["ambient"])
if ambient_spawn_limit >= 15: if ambient_spawn_limit >= 15:
embed_var.add_field(name="❌ spawn-limits.ambient", embed_var.add_field(name="❌ spawn-limits.ambient",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 1.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 1.")
@ -413,7 +438,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["animals"])
animals_spawn_limit = int(r1["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["animals"])
if animals_spawn_limit >= 10: if animals_spawn_limit >= 10:
embed_var.add_field(name="❌ spawn-limits.animals", embed_var.add_field(name="❌ spawn-limits.animals",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 3.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 3.")
@ -424,7 +449,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
water_animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-animals"])
water_animals_spawn_limit = int(r1["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-animals"])
if water_animals_spawn_limit >= 15: if water_animals_spawn_limit >= 15:
embed_var.add_field(name="❌ spawn-limits.water-animals", embed_var.add_field(name="❌ spawn-limits.water-animals",
value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2.") value="Decrease this in [bukkit.yml](https://bukkit.gamepedia.com/Bukkit.yml).\nRecommended: 2.")
@ -435,10 +460,10 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
mob_spawn_range = int(r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["mob-spawn-range"])
spigot_view_distance = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"]
mob_spawn_range = int(r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["mob-spawn-range"])
spigot_view_distance = r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"]
if spigot_view_distance == "default": if spigot_view_distance == "default":
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"])
view_distance = int(r1["timingsMaster"]["config"]["server.properties"]["view-distance"])
if mob_spawn_range >= 8 and view_distance <= 6: if mob_spawn_range >= 8 and view_distance <= 6:
embed_var.add_field(name="❌ mob-spawn-range", embed_var.add_field(name="❌ mob-spawn-range",
value="Decrease this in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this in [spigot.yml](http://bit.ly/spiconf). "
@ -455,7 +480,7 @@ class Timings(commands.Cog):
try: try:
animals_entity_activation_range = int( animals_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"animals"]) "animals"])
if animals_entity_activation_range >= 32: if animals_entity_activation_range >= 32:
embed_var.add_field(name="❌ entity-activation-range.animals", embed_var.add_field(name="❌ entity-activation-range.animals",
@ -469,7 +494,7 @@ class Timings(commands.Cog):
try: try:
monsters_entity_activation_range = int( monsters_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"monsters"]) "monsters"])
if monsters_entity_activation_range >= 32: if monsters_entity_activation_range >= 32:
embed_var.add_field(name="❌ entity-activation-range.monsters", embed_var.add_field(name="❌ entity-activation-range.monsters",
@ -483,7 +508,7 @@ class Timings(commands.Cog):
try: try:
raiders_entity_activation_range = int( raiders_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"raiders"]) "raiders"])
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
@ -493,7 +518,7 @@ class Timings(commands.Cog):
try: try:
misc_entity_activation_range = int( misc_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["misc"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["misc"])
if misc_entity_activation_range >= 16: if misc_entity_activation_range >= 16:
embed_var.add_field(name="❌ entity-activation-range.misc", embed_var.add_field(name="❌ entity-activation-range.misc",
value="Decrease this in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this in [spigot.yml](http://bit.ly/spiconf). "
@ -506,7 +531,7 @@ class Timings(commands.Cog):
try: try:
water_entity_activation_range = int( water_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["water"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["water"])
if water_entity_activation_range >= 16: if water_entity_activation_range >= 16:
embed_var.add_field(name="❌ entity-activation-range.water", embed_var.add_field(name="❌ entity-activation-range.water",
value="Decrease this in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this in [spigot.yml](http://bit.ly/spiconf). "
@ -519,7 +544,7 @@ class Timings(commands.Cog):
try: try:
villagers_entity_activation_range = int( villagers_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"villagers"]) "villagers"])
if villagers_entity_activation_range >= 32: if villagers_entity_activation_range >= 32:
embed_var.add_field(name="❌ entity-activation-range.villagers", embed_var.add_field(name="❌ entity-activation-range.villagers",
@ -533,7 +558,7 @@ class Timings(commands.Cog):
try: try:
flying_monsters_entity_activation_range = int( flying_monsters_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"flying-monsters"]) "flying-monsters"])
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
@ -543,7 +568,7 @@ class Timings(commands.Cog):
try: try:
tick_inactive_villagers = \ tick_inactive_villagers = \
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"tick-inactive-villagers"] "tick-inactive-villagers"]
if tick_inactive_villagers == "true": if tick_inactive_villagers == "true":
embed_var.add_field(name="❌ tick-inactive-villagers", embed_var.add_field(name="❌ tick-inactive-villagers",
@ -555,7 +580,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
nerf_spawner_mobs = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["nerf-spawner-mobs"]
nerf_spawner_mobs = r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["nerf-spawner-mobs"]
if nerf_spawner_mobs == "false": if nerf_spawner_mobs == "false":
embed_var.add_field(name="❌ nerf-spawner-mobs", embed_var.add_field(name="❌ nerf-spawner-mobs",
value="Enable this in [spigot.yml](http://bit.ly/spiconf).") value="Enable this in [spigot.yml](http://bit.ly/spiconf).")
@ -567,7 +592,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_villagers_every = int( wake_up_inactive_villagers_every = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
@ -576,7 +601,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
wake_up_inactive_villagers_for = int( wake_up_inactive_villagers_for = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-for"]) "wake-up-inactive"]["villagers-for"])
if wake_up_inactive_villagers_for >= 100: if wake_up_inactive_villagers_for >= 100:
embed_var.add_field(name="❌ wake-up-inactive.villagers-for", embed_var.add_field(name="❌ wake-up-inactive.villagers-for",
@ -590,7 +615,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_flying_monsters_for = int( wake_up_inactive_flying_monsters_for = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["flying-monsters-for"]) "wake-up-inactive"]["flying-monsters-for"])
if wake_up_inactive_flying_monsters_for >= 100: if wake_up_inactive_flying_monsters_for >= 100:
embed_var.add_field(name="❌ wake-up-inactive.flying-monsters-for", embed_var.add_field(name="❌ wake-up-inactive.flying-monsters-for",
@ -604,7 +629,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_animals_every = int( wake_up_inactive_animals_every = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["animals-every"]) "wake-up-inactive"]["animals-every"])
except KeyError: except KeyError:
@ -615,7 +640,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_villagers_max_per_tick = int( wake_up_inactive_villagers_max_per_tick = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-max-per-tick"]) "wake-up-inactive"]["villagers-max-per-tick"])
if wake_up_inactive_villagers_max_per_tick >= 4: if wake_up_inactive_villagers_max_per_tick >= 4:
embed_var.add_field(name="❌ wake-up-inactive.villagers-max-per-tick", embed_var.add_field(name="❌ wake-up-inactive.villagers-max-per-tick",
@ -629,7 +654,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_animals_for = int( wake_up_inactive_animals_for = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["animals-for"]) "wake-up-inactive"]["animals-for"])
if wake_up_inactive_animals_for >= 100: if wake_up_inactive_animals_for >= 100:
embed_var.add_field(name="❌ wake-up-inactive.animals-for", embed_var.add_field(name="❌ wake-up-inactive.animals-for",
@ -643,7 +668,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_monsters_max_per_tick = int( wake_up_inactive_monsters_max_per_tick = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["monsters-max-per-tick"]) "wake-up-inactive"]["monsters-max-per-tick"])
if wake_up_inactive_monsters_max_per_tick >= 8: if wake_up_inactive_monsters_max_per_tick >= 8:
embed_var.add_field(name="❌ wake-up-inactive.monsters-max-per-tick", embed_var.add_field(name="❌ wake-up-inactive.monsters-max-per-tick",
@ -657,7 +682,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_flying_monsters_max_per_tick = int( wake_up_inactive_flying_monsters_max_per_tick = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["flying-monsters-max-per-tick"]) "wake-up-inactive"]["flying-monsters-max-per-tick"])
if wake_up_inactive_flying_monsters_max_per_tick >= 8: if wake_up_inactive_flying_monsters_max_per_tick >= 8:
embed_var.add_field(name="❌ wake-up-inactive.flying-monsters-max-per-tick", embed_var.add_field(name="❌ wake-up-inactive.flying-monsters-max-per-tick",
@ -671,7 +696,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_flying_monsters_every = int( wake_up_inactive_flying_monsters_every = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["flying-monsters-every"]) "wake-up-inactive"]["flying-monsters-every"])
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
@ -681,7 +706,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_monsters_every = int( wake_up_inactive_monsters_every = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["monsters-every"]) "wake-up-inactive"]["monsters-every"])
except KeyError: except KeyError:
unchecked = unchecked + 1 unchecked = unchecked + 1
@ -691,7 +716,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_animals_max_per_tick = int( wake_up_inactive_animals_max_per_tick = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["animals-max-per-tick"]) "wake-up-inactive"]["animals-max-per-tick"])
if wake_up_inactive_animals_max_per_tick >= 4: if wake_up_inactive_animals_max_per_tick >= 4:
embed_var.add_field(name="❌ wake-up-inactive.animals-max-per-tick", embed_var.add_field(name="❌ wake-up-inactive.animals-max-per-tick",
@ -705,7 +730,7 @@ class Timings(commands.Cog):
try: try:
wake_up_inactive_monsters_for = int( wake_up_inactive_monsters_for = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["monsters-for"]) "wake-up-inactive"]["monsters-for"])
if wake_up_inactive_monsters_for >= 100: if wake_up_inactive_monsters_for >= 100:
embed_var.add_field(name="❌ wake-up-inactive.monsters-for", embed_var.add_field(name="❌ wake-up-inactive.monsters-for",
@ -719,7 +744,7 @@ class Timings(commands.Cog):
try: try:
arrow_despawn_rate = int( arrow_despawn_rate = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["arrow-despawn-rate"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["arrow-despawn-rate"])
if arrow_despawn_rate >= 1200: if arrow_despawn_rate >= 1200:
embed_var.add_field(name="❌ arrow-despawn-rate", embed_var.add_field(name="❌ arrow-despawn-rate",
value="Decrease this in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this in [spigot.yml](http://bit.ly/spiconf). "
@ -732,7 +757,7 @@ class Timings(commands.Cog):
try: try:
item_merge_radius = float( item_merge_radius = float(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["item"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["item"])
if item_merge_radius <= 2.5: if item_merge_radius <= 2.5:
embed_var.add_field(name="❌ merge-radius.item", embed_var.add_field(name="❌ merge-radius.item",
value="Increase this in [spigot.yml](http://bit.ly/spiconf). " value="Increase this in [spigot.yml](http://bit.ly/spiconf). "
@ -745,7 +770,7 @@ class Timings(commands.Cog):
try: try:
exp_merge_radius = float( exp_merge_radius = float(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["exp"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["exp"])
if exp_merge_radius <= 3.0: if exp_merge_radius <= 3.0:
embed_var.add_field(name="❌ merge-radius.exp", embed_var.add_field(name="❌ merge-radius.exp",
value="Increase this in [spigot.yml](http://bit.ly/spiconf). " value="Increase this in [spigot.yml](http://bit.ly/spiconf). "
@ -758,7 +783,7 @@ class Timings(commands.Cog):
try: try:
max_entity_collisions = int( max_entity_collisions = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["max-entity-collisions"])
r1["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["max-entity-collisions"])
if max_entity_collisions >= 8: if max_entity_collisions >= 8:
embed_var.add_field(name="❌ max-entity-collisions", embed_var.add_field(name="❌ max-entity-collisions",
value="Decrease this in [spigot.yml](http://bit.ly/spiconf). " value="Decrease this in [spigot.yml](http://bit.ly/spiconf). "
@ -771,7 +796,7 @@ class Timings(commands.Cog):
try: try:
max_auto_save_chunks_per_tick = int( max_auto_save_chunks_per_tick = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["max-auto-save-chunks-per-tick"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["max-auto-save-chunks-per-tick"])
if max_auto_save_chunks_per_tick >= 24: if max_auto_save_chunks_per_tick >= 24:
embed_var.add_field(name="❌ max-auto-save-chunks-per-tick", embed_var.add_field(name="❌ max-auto-save-chunks-per-tick",
value="Decrease this in [paper.yml](http://bit.ly/paperconf). " value="Decrease this in [paper.yml](http://bit.ly/paperconf). "
@ -783,7 +808,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
optimize_explosions = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
optimize_explosions = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"optimize-explosions"] "optimize-explosions"]
if optimize_explosions == "false": if optimize_explosions == "false":
embed_var.add_field(name="❌ optimize-explosions", embed_var.add_field(name="❌ optimize-explosions",
@ -796,7 +821,7 @@ class Timings(commands.Cog):
try: try:
mob_spawner_tick_rate = int( mob_spawner_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["mob-spawner-tick-rate"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["mob-spawner-tick-rate"])
if mob_spawner_tick_rate == 1: if mob_spawner_tick_rate == 1:
embed_var.add_field(name="❌ mob-spawner-tick-rate", embed_var.add_field(name="❌ mob-spawner-tick-rate",
value="Increase this in [paper.yml](http://bit.ly/paperconf). " value="Increase this in [paper.yml](http://bit.ly/paperconf). "
@ -809,7 +834,7 @@ class Timings(commands.Cog):
try: try:
disable_chest_cat_detection = \ disable_chest_cat_detection = \
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["game-mechanics"][
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["game-mechanics"][
"disable-chest-cat-detection"] "disable-chest-cat-detection"]
if disable_chest_cat_detection == "false": if disable_chest_cat_detection == "false":
embed_var.add_field(name="❌ disable-chest-cat-detection", embed_var.add_field(name="❌ disable-chest-cat-detection",
@ -822,7 +847,7 @@ class Timings(commands.Cog):
try: try:
container_update_tick_rate = int( container_update_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["container-update-tick-rate"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["container-update-tick-rate"])
if container_update_tick_rate == "false": if container_update_tick_rate == "false":
embed_var.add_field(name="❌ container-update-tick-rate", embed_var.add_field(name="❌ container-update-tick-rate",
value="Increase this in [paper.yml](http://bit.ly/paperconf). " value="Increase this in [paper.yml](http://bit.ly/paperconf). "
@ -835,7 +860,7 @@ class Timings(commands.Cog):
try: try:
grass_spread_tick_rate = int( grass_spread_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["grass-spread-tick-rate"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["grass-spread-tick-rate"])
if grass_spread_tick_rate == 1: if grass_spread_tick_rate == 1:
embed_var.add_field(name="❌ grass-spread-tick-rate", embed_var.add_field(name="❌ grass-spread-tick-rate",
value="Increase this in [paper.yml](http://bit.ly/paperconf). " value="Increase this in [paper.yml](http://bit.ly/paperconf). "
@ -848,7 +873,7 @@ class Timings(commands.Cog):
try: try:
soft_despawn_range = int( soft_despawn_range = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"])
if soft_despawn_range >= 32: if soft_despawn_range >= 32:
embed_var.add_field(name="❌ despawn-ranges.soft", embed_var.add_field(name="❌ despawn-ranges.soft",
value="Decrease this in [paper.yml](http://bit.ly/paperconf). " value="Decrease this in [paper.yml](http://bit.ly/paperconf). "
@ -860,7 +885,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
hard_despawn_range = int(r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"])
hard_despawn_range = int(r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"])
if hard_despawn_range >= 128: if hard_despawn_range >= 128:
embed_var.add_field(name="❌ despawn-ranges.hard", embed_var.add_field(name="❌ despawn-ranges.hard",
value="Decrease this in [paper.yml](http://bit.ly/paperconf). " value="Decrease this in [paper.yml](http://bit.ly/paperconf). "
@ -872,9 +897,10 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
hopper_disable_move_event = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["hopper"][
hopper_disable_move_event = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["hopper"][
"disable-move-event"] "disable-move-event"]
if hopper_disable_move_event == "false":
plugins = r1["timingsMaster"]["plugins"]
if hopper_disable_move_event == "false" and "QuickShop" not in plugins:
embed_var.add_field(name="❌ hopper.disable-move-event", embed_var.add_field(name="❌ hopper.disable-move-event",
value="Enable this in [paper.yml](http://bit.ly/paperconf).") value="Enable this in [paper.yml](http://bit.ly/paperconf).")
except KeyError: except KeyError:
@ -885,7 +911,7 @@ class Timings(commands.Cog):
try: try:
non_player_arrow_despawn_rate = int( non_player_arrow_despawn_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["non-player-arrow-despawn-rate"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["non-player-arrow-despawn-rate"])
if non_player_arrow_despawn_rate == -1: if non_player_arrow_despawn_rate == -1:
embed_var.add_field(name="❌ non-player-arrow-despawn-rate", embed_var.add_field(name="❌ non-player-arrow-despawn-rate",
value="Set a value in [paper.yml](http://bit.ly/paperconf). " value="Set a value in [paper.yml](http://bit.ly/paperconf). "
@ -898,7 +924,7 @@ class Timings(commands.Cog):
try: try:
creative_arrow_despawn_rate = int( creative_arrow_despawn_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["creative-arrow-despawn-rate"])
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["creative-arrow-despawn-rate"])
if creative_arrow_despawn_rate == -1: if creative_arrow_despawn_rate == -1:
embed_var.add_field(name="❌ creative-arrow-despawn-rate", embed_var.add_field(name="❌ creative-arrow-despawn-rate",
value="Set a value in [paper.yml](http://bit.ly/paperconf). " value="Set a value in [paper.yml](http://bit.ly/paperconf). "
@ -910,7 +936,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
prevent_moving_into_unloaded_chunks = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
prevent_moving_into_unloaded_chunks = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"prevent-moving-into-unloaded-chunks"] "prevent-moving-into-unloaded-chunks"]
if prevent_moving_into_unloaded_chunks == "false": if prevent_moving_into_unloaded_chunks == "false":
embed_var.add_field(name="❌ prevent-moving-into-unloaded-chunks", embed_var.add_field(name="❌ prevent-moving-into-unloaded-chunks",
@ -922,7 +948,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
eigencraft_redstone = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
eigencraft_redstone = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"use-faster-eigencraft-redstone"] "use-faster-eigencraft-redstone"]
if eigencraft_redstone == "false": if eigencraft_redstone == "false":
embed_var.add_field(name="❌ use-faster-eigencraft-redstone", embed_var.add_field(name="❌ use-faster-eigencraft-redstone",
@ -934,7 +960,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
fix_climbing_bypass_gamerule = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["fix-climbing-bypassing-cramming-rule"]
fix_climbing_bypass_gamerule = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["fix-climbing-bypassing-cramming-rule"]
if fix_climbing_bypass_gamerule == "false": if fix_climbing_bypass_gamerule == "false":
embed_var.add_field(name="❌ fix-climbing-bypassing-cramming-rule", embed_var.add_field(name="❌ fix-climbing-bypassing-cramming-rule",
value="Enable this in [paper.yml](http://bit.ly/paperconf).") value="Enable this in [paper.yml](http://bit.ly/paperconf).")
@ -945,7 +971,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
armor_stands_do_collision_entity_lookups = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["armor-stands-do-collision-entity-lookups"]
armor_stands_do_collision_entity_lookups = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["armor-stands-do-collision-entity-lookups"]
if armor_stands_do_collision_entity_lookups == "true": if armor_stands_do_collision_entity_lookups == "true":
embed_var.add_field(name="❌ armor-stands-do-collision-entity-lookups", embed_var.add_field(name="❌ armor-stands-do-collision-entity-lookups",
value="Disable this in [paper.yml](http://bit.ly/paperconf).") value="Disable this in [paper.yml](http://bit.ly/paperconf).")
@ -956,8 +982,8 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
plugins = r["timingsMaster"]["plugins"]
armor_stands_tick = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["armor-stands-tick"]
plugins = r1["timingsMaster"]["plugins"]
armor_stands_tick = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["armor-stands-tick"]
if armor_stands_tick == "true" and "PetBlocks" not in plugins and "BlockBalls" not in plugins and "ArmorStandTools" not in plugins: if armor_stands_tick == "true" and "PetBlocks" not in plugins and "BlockBalls" not in plugins and "ArmorStandTools" not in plugins:
embed_var.add_field(name="❌ armor-stands-tick", embed_var.add_field(name="❌ armor-stands-tick",
value="Disable this in [paper.yml](http://bit.ly/paperconf).") value="Disable this in [paper.yml](http://bit.ly/paperconf).")
@ -968,7 +994,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
per_player_mob_spawns = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
per_player_mob_spawns = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"per-player-mob-spawns"] "per-player-mob-spawns"]
if per_player_mob_spawns == "false": if per_player_mob_spawns == "false":
embed_var.add_field(name="❌ per-player-mob-spawns", embed_var.add_field(name="❌ per-player-mob-spawns",
@ -981,7 +1007,7 @@ class Timings(commands.Cog):
try: try:
alt_item_despawn_rate_enabled = \ alt_item_despawn_rate_enabled = \
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["alt-item-despawn-rate"]["enabled"]
r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["alt-item-despawn-rate"]["enabled"]
if alt_item_despawn_rate_enabled == "false": if alt_item_despawn_rate_enabled == "false":
embed_var.add_field(name="❌ alt-item-despawn-rate.enabled", embed_var.add_field(name="❌ alt-item-despawn-rate.enabled",
value="Enable this in [paper.yml](http://bit.ly/paperconf).") value="Enable this in [paper.yml](http://bit.ly/paperconf).")
@ -992,31 +1018,8 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
no_tick_view_distance = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["viewdistances"][
"no-tick-view-distance"])
if no_tick_view_distance == -1:
spigot_view_distance = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"][
"view-distance"]
if spigot_view_distance == "default":
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"])
if view_distance >= 4:
embed_var.add_field(name="❌ no-tick-view-distance",
value="Set a value in [paper.yml](http://bit.ly/paperconf). "
"Recommended: " + str(view_distance) + ". And reduce view-distance from default (" + str(view_distance) + ") in [spigot.yml](http://bit.ly/spiconf). Recommended: 3.")
elif int(spigot_view_distance) >= 4:
embed_var.add_field(name="❌ no-tick-view-distance",
value="Set a value in [paper.yml](http://bit.ly/paperconf). "
"Recommended: " + spigot_view_distance + ". And reduce view-distance in [spigot.yml](http://bit.ly/spiconf). Recommended: 3.")
except KeyError:
unchecked = unchecked + 1
except:
embed_var.add_field(name="❌ Invalid Configuration",
value="At least one of your configuration files had an invalid data type.")
try:
enable_treasure_maps = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["enable-treasure-maps"]
already_discovered_maps = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["treasure-maps-return-already-discovered"]
enable_treasure_maps = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["enable-treasure-maps"]
already_discovered_maps = r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["treasure-maps-return-already-discovered"]
if enable_treasure_maps == "true" and already_discovered_maps == "false": if enable_treasure_maps == "true" and already_discovered_maps == "false":
embed_var.add_field(name="❌ enable-treasure-maps", embed_var.add_field(name="❌ enable-treasure-maps",
value="Disable this in [paper.yml](http://bit.ly/paperconf).") value="Disable this in [paper.yml](http://bit.ly/paperconf).")
@ -1027,7 +1030,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
projectile_load_save = int(r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
projectile_load_save = int(r1["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"projectile-load-save-per-chunk-limit"]) "projectile-load-save-per-chunk-limit"])
if projectile_load_save == -1: if projectile_load_save == -1:
embed_var.add_field(name="❌ projectile-load-save-per-chunk-limit", embed_var.add_field(name="❌ projectile-load-save-per-chunk-limit",
@ -1039,8 +1042,8 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
use_alternate_keepalive = r["timingsMaster"]["config"]["purpur"]["settings"]["use-alternate-keepalive"]
plugins = r["timingsMaster"]["plugins"]
use_alternate_keepalive = r1["timingsMaster"]["config"]["purpur"]["settings"]["use-alternate-keepalive"]
plugins = r1["timingsMaster"]["plugins"]
if use_alternate_keepalive == "false" and "TCPShield" not in plugins: if use_alternate_keepalive == "false" and "TCPShield" not in plugins:
embed_var.add_field(name="❌ use-alternate-keepalive", embed_var.add_field(name="❌ use-alternate-keepalive",
value="Enable this in [purpur.yml](http://bit.ly/purpurc).") value="Enable this in [purpur.yml](http://bit.ly/purpurc).")
@ -1054,7 +1057,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
dont_send_useless_entity_packets = r["timingsMaster"]["config"]["purpur"]["settings"][
dont_send_useless_entity_packets = r1["timingsMaster"]["config"]["purpur"]["settings"][
"dont-send-useless-entity-packets"] "dont-send-useless-entity-packets"]
if dont_send_useless_entity_packets == "false": if dont_send_useless_entity_packets == "false":
embed_var.add_field(name="❌ dont-send-useless-entity-packets", embed_var.add_field(name="❌ dont-send-useless-entity-packets",
@ -1067,7 +1070,7 @@ class Timings(commands.Cog):
try: try:
disable_treasure_searching = \ disable_treasure_searching = \
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["dolphin"][
r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["dolphin"][
"disable-treasure-searching"] "disable-treasure-searching"]
if disable_treasure_searching == "false": if disable_treasure_searching == "false":
embed_var.add_field(name="❌ dolphin.disable-treasure-searching", embed_var.add_field(name="❌ dolphin.disable-treasure-searching",
@ -1079,7 +1082,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
brain_ticks = int(r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["brain-ticks"])
brain_ticks = int(r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["brain-ticks"])
if brain_ticks == 1: if brain_ticks == 1:
embed_var.add_field(name="❌ villager.brain-ticks", embed_var.add_field(name="❌ villager.brain-ticks",
value="Increase this in [purpur.yml](http://bit.ly/purpurc). " value="Increase this in [purpur.yml](http://bit.ly/purpurc). "
@ -1091,7 +1094,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
iron_golem_radius = int(r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["spawn-iron-golem"]["radius"])
iron_golem_radius = int(r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["spawn-iron-golem"]["radius"])
if iron_golem_radius == 0: if iron_golem_radius == 0:
embed_var.add_field(name="❌ spawn-iron-golem.radius", embed_var.add_field(name="❌ spawn-iron-golem.radius",
value="Set a value in [purpur.yml](http://bit.ly/purpurc). " value="Set a value in [purpur.yml](http://bit.ly/purpurc). "
@ -1103,7 +1106,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
iron_golem_limit = int(r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["spawn-iron-golem"]["limit"])
iron_golem_limit = int(r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"]["spawn-iron-golem"]["limit"])
if iron_golem_limit == 0: if iron_golem_limit == 0:
embed_var.add_field(name="❌ spawn-iron-golem.limit", embed_var.add_field(name="❌ spawn-iron-golem.limit",
value="Set a value in [purpur.yml](http://bit.ly/purpurc). " value="Set a value in [purpur.yml](http://bit.ly/purpurc). "
@ -1116,7 +1119,7 @@ class Timings(commands.Cog):
try: try:
aggressive_towards_villager_when_lagging = \ aggressive_towards_villager_when_lagging = \
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["zombie"][
r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["zombie"][
"aggressive-towards-villager-when-lagging"] "aggressive-towards-villager-when-lagging"]
if aggressive_towards_villager_when_lagging == "true": if aggressive_towards_villager_when_lagging == "true":
embed_var.add_field(name="❌ zombie.aggresive-towards-villager-when-lagging", embed_var.add_field(name="❌ zombie.aggresive-towards-villager-when-lagging",
@ -1129,7 +1132,7 @@ class Timings(commands.Cog):
try: try:
entities_can_use_portals = \ entities_can_use_portals = \
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"][
r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"][
"entities-can-use-portals"] "entities-can-use-portals"]
if entities_can_use_portals == "true": if entities_can_use_portals == "true":
embed_var.add_field(name="❌ entities-can-use-portals", embed_var.add_field(name="❌ entities-can-use-portals",
@ -1141,7 +1144,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
lobotomize_enabled = r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][
lobotomize_enabled = r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][
"lobotomize"]["enabled"] "lobotomize"]["enabled"]
if lobotomize_enabled == "false": if lobotomize_enabled == "false":
embed_var.add_field(name="❌ villager.lobotomize.enabled", embed_var.add_field(name="❌ villager.lobotomize.enabled",
@ -1153,7 +1156,7 @@ class Timings(commands.Cog):
value="At least one of your configuration files had an invalid data type.") value="At least one of your configuration files had an invalid data type.")
try: try:
teleport_if_outside_border = r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"]
teleport_if_outside_border = r1["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"]
if teleport_if_outside_border == "false": if teleport_if_outside_border == "false":
embed_var.add_field(name="❌ player.teleport-if-outside-border", embed_var.add_field(name="❌ player.teleport-if-outside-border",
value="Enable this in [purpur.yml](http://bit.ly/purpurc).") value="Enable this in [purpur.yml](http://bit.ly/purpurc).")

Loading…
Cancel
Save