Browse Source

Timings - X emoji

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

214
cogs/timings.py

@ -52,17 +52,17 @@ class Timings(commands.Cog):
try: try:
version = r["timingsMaster"]["version"] version = r["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="Update to 1.16.4.", value="Update to 1.16.4.",
inline=True) inline=True)
using_yatopia = "yatopia" in r["timingsMaster"]["config"] using_yatopia = "yatopia" in r["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://ci.pl3x.net/job/Purpur/).", "Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).",
inline=True) inline=True)
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. " value="||Purpur has more optimizations but is generally less supported. "
"Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).||", "Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).||",
inline=True) inline=True)
@ -74,7 +74,7 @@ class Timings(commands.Cog):
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"] bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
if not online_mode and bungeecord == "false": if not online_mode and bungeecord == "false":
if not online_mode and bungeecord == "false": if not online_mode and bungeecord == "false":
embed_var.add_field(name=" online-mode",
embed_var.add_field(name=" online-mode",
value="Enable this in server.properties for security.", value="Enable this in server.properties for security.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -83,7 +83,7 @@ class Timings(commands.Cog):
try: try:
timing_cost = int(r["timingsMaster"]["system"]["timingcost"]) timing_cost = int(r["timingsMaster"]["system"]["timingcost"])
if timing_cost > 400: if timing_cost > 400:
embed_var.add_field(name=" Timingcost",
embed_var.add_field(name=" Timingcost",
value="Your cpu is overloaded. Find a better host.", value="Your cpu is overloaded. Find a better host.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -92,7 +92,7 @@ class Timings(commands.Cog):
try: try:
jvm_version = r["timingsMaster"]["system"]["jvmversion"] jvm_version = r["timingsMaster"]["system"]["jvmversion"]
if "1.8.0_" in jvm_version or jvm_version.startswith("9.") or jvm_version.startswith("10."): if "1.8.0_" in jvm_version 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="Use Java 11.", value="Use Java 11.",
inline=True) inline=True)
@ -105,16 +105,16 @@ class Timings(commands.Cog):
jvm_version = r["timingsMaster"]["system"]["jvmversion"] jvm_version = r["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,
value="If you are going to use ZGC, you should also use Java 14 or 15.", value="If you are going to use ZGC, you should also use Java 14 or 15.",
inline=True) inline=True)
elif "-Daikars.new.flags=true" in flags: elif "-Daikars.new.flags=true" in flags:
if "-XX:+PerfDisableSharedMem" not in flags: if "-XX:+PerfDisableSharedMem" not in flags:
embed_var.add_field(name=" Outdated Flags",
embed_var.add_field(name=" Outdated Flags",
value="Add `-XX:+PerfDisableSharedMem` to flags", value="Add `-XX:+PerfDisableSharedMem` to flags",
inline=True) inline=True)
if "XX:G1MixedGCCountTarget=4" not in flags: if "XX:G1MixedGCCountTarget=4" not in flags:
embed_var.add_field(name=" Outdated Flags",
embed_var.add_field(name=" Outdated Flags",
value="Add `-XX:G1MixedGCCountTarget=4` to flags", value="Add `-XX:G1MixedGCCountTarget=4` to flags",
inline=True) inline=True)
if "-Xmx" in flags: if "-Xmx" in flags:
@ -128,7 +128,7 @@ class Timings(commands.Cog):
max_mem = max_mem.replace("g", "000") max_mem = max_mem.replace("g", "000")
max_mem = max_mem.replace("m", "") max_mem = max_mem.replace("m", "")
if int(max_mem) < 5400: if int(max_mem) < 5400:
embed_var.add_field(name=" Low Memory",
embed_var.add_field(name=" Low Memory",
value="Allocate at least 6-10GB of ram to your server if you can afford it.", value="Allocate at least 6-10GB of ram to your server if you can afford it.",
inline=True) inline=True)
if "-Xms" in flags: if "-Xms" in flags:
@ -142,15 +142,15 @@ class Timings(commands.Cog):
min_mem = min_mem.replace("g", "000") min_mem = min_mem.replace("g", "000")
min_mem = min_mem.replace("m", "") min_mem = min_mem.replace("m", "")
if min_mem != max_mem: if min_mem != max_mem:
embed_var.add_field(name=" Aikar's Flags",
embed_var.add_field(name=" Aikar's Flags",
value="Your Xmx and Xms values must be equal with Aikar's flags.", value="Your Xmx and Xms values must be equal with Aikar's flags.",
inline=True) inline=True)
elif "-Dusing.aikars.flags=mcflags.emc.gs" in flags: elif "-Dusing.aikars.flags=mcflags.emc.gs" in flags:
embed_var.add_field(name=" Outdated Flags",
embed_var.add_field(name=" Outdated Flags",
value="Update [Aikar's flags](https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/).", value="Update [Aikar's flags](https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/).",
inline=True) inline=True)
else: else:
embed_var.add_field(name=" Aikar's Flags",
embed_var.add_field(name=" Aikar's Flags",
value="Use [Aikar's flags](https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/).", value="Use [Aikar's flags](https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/).",
inline=True) inline=True)
except KeyError: except KeyError:
@ -158,7 +158,7 @@ class Timings(commands.Cog):
try: try:
cpu = int(r["timingsMaster"]["system"]["cpu"]) cpu = int(r["timingsMaster"]["system"]["cpu"])
if cpu <= 2: if cpu <= 2:
embed_var.add_field(name=" Threads",
embed_var.add_field(name=" Threads",
value="You have only " + str(cpu) + " thread(s). Find a [better host](https://www.birdflop.com).", value="You have only " + str(cpu) + " thread(s). Find a [better host](https://www.birdflop.com).",
inline=True) inline=True)
except KeyError: except KeyError:
@ -167,123 +167,123 @@ class Timings(commands.Cog):
try: try:
plugins = r["timingsMaster"]["plugins"] plugins = r["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. "
"Remove ClearLag.", "Remove ClearLag.",
inline=True) inline=True)
if "LagAssist" in plugins: if "LagAssist" in plugins:
embed_var.add_field(name=" LagAssist",
embed_var.add_field(name=" LagAssist",
value="Plugins that claim to remove lag actually cause more lag. " value="Plugins that claim to remove lag actually cause more lag. "
"Remove LagAssist.", "Remove LagAssist.",
inline=True) inline=True)
if "NoChunkLag" in plugins: if "NoChunkLag" in plugins:
embed_var.add_field(name=" NoChunkLag",
embed_var.add_field(name=" NoChunkLag",
value="Plugins that claim to remove lag actually cause more lag. " value="Plugins that claim to remove lag actually cause more lag. "
"Remove NoChunkLag.", "Remove NoChunkLag.",
inline=True) inline=True)
if "ServerBooster" in plugins: if "ServerBooster" in plugins:
embed_var.add_field(name=" ServerBooster",
embed_var.add_field(name=" ServerBooster",
value="Plugins that claim to remove lag actually cause more lag. " value="Plugins that claim to remove lag actually cause more lag. "
"Remove ServerBooster.", "Remove ServerBooster.",
inline=True) inline=True)
if "LimitPillagers" in plugins: if "LimitPillagers" in plugins:
embed_var.add_field(name=" LimitPillagers",
embed_var.add_field(name=" LimitPillagers",
value="You probably don't need LimitPillagers as Paper already adds its features. " value="You probably don't need LimitPillagers as Paper already adds its features. "
"Remove LimitPillagers.", "Remove LimitPillagers.",
inline=True) inline=True)
if "VillagerOptimiser" in plugins: if "VillagerOptimiser" in plugins:
embed_var.add_field(name=" VillagerOptimiser",
embed_var.add_field(name=" VillagerOptimiser",
value="You probably don't need VillagerOptimiser as Paper already adds its features. " value="You probably don't need VillagerOptimiser as Paper already adds its features. "
"See entity-activation-range in spigot.yml.", "See entity-activation-range in spigot.yml.",
inline=True) inline=True)
if "StackMob" in plugins: if "StackMob" in plugins:
embed_var.add_field(name=" StackMob",
embed_var.add_field(name=" StackMob",
value="Stacking plugins actually cause more lag. " value="Stacking plugins actually cause more lag. "
"Remove StackMob.", "Remove StackMob.",
inline=True) inline=True)
if "Stacker" in plugins: if "Stacker" in plugins:
embed_var.add_field(name=" Stacker",
embed_var.add_field(name=" Stacker",
value="Stacking plugins actually cause more lag. " value="Stacking plugins actually cause more lag. "
"Remove Stacker.", "Remove Stacker.",
inline=True) inline=True)
if "MobStacker" in plugins: if "MobStacker" in plugins:
embed_var.add_field(name=" MobStacker",
embed_var.add_field(name=" MobStacker",
value="Stacking plugins actually cause more lag. " value="Stacking plugins actually cause more lag. "
"Remove MobStacker.", "Remove MobStacker.",
inline=True) inline=True)
if "WildStacker" in plugins: if "WildStacker" in plugins:
embed_var.add_field(name=" WildStacker",
embed_var.add_field(name=" WildStacker",
value="Stacking plugins actually cause more lag. " value="Stacking plugins actually cause more lag. "
"Remove WildStacker.", "Remove WildStacker.",
inline=True) inline=True)
if "SuggestionBlocker" in plugins: if "SuggestionBlocker" in plugins:
embed_var.add_field(name=" SuggestionBlocker",
embed_var.add_field(name=" SuggestionBlocker",
value="You probably don't need SuggestionBlocker as Spigot already adds its features. " value="You probably don't need SuggestionBlocker as Spigot already adds its features. "
"Set tab-complete to -1 in spigot.yml.", "Set tab-complete to -1 in spigot.yml.",
inline=True) inline=True)
if "FastAsyncWorldEdit" in plugins: if "FastAsyncWorldEdit" in plugins:
embed_var.add_field(name=" FastAsyncWorldEdit",
embed_var.add_field(name=" FastAsyncWorldEdit",
value="FAWE can corrupt your world. " value="FAWE can corrupt your world. "
"Consider replacing FAWE with [Worldedit](https://enginehub.org/worldedit/#downloads).", "Consider replacing FAWE with [Worldedit](https://enginehub.org/worldedit/#downloads).",
inline=True) inline=True)
if "CMI" in plugins: if "CMI" in plugins:
embed_var.add_field(name=" CMI",
embed_var.add_field(name=" CMI",
value="CMI is a buggy plugin. " value="CMI is a buggy plugin. "
"Consider replacing CMI with [EssentialsX](https://essentialsx.net/downloads.html).", "Consider replacing CMI with [EssentialsX](https://essentialsx.net/downloads.html).",
inline=True) inline=True)
if "Spartan" in plugins: if "Spartan" in plugins:
embed_var.add_field(name=" Spartan",
embed_var.add_field(name=" Spartan",
value="Spartan is a laggy anticheat. " 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/).", "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/).",
inline=True) inline=True)
if "IllegalStack" in plugins: if "IllegalStack" in plugins:
embed_var.add_field(name=" IllegalStack",
embed_var.add_field(name=" IllegalStack",
value="You probably don't need IllegalStack as Paper already has its features. " value="You probably don't need IllegalStack as Paper already has its features. "
"Remove IllegalStack.", "Remove IllegalStack.",
inline=True) inline=True)
if "ExploitFixer" in plugins: if "ExploitFixer" in plugins:
embed_var.add_field(name=" ExploitFixer",
embed_var.add_field(name=" ExploitFixer",
value="You probably don't need ExploitFixer as Paper already has its features. " value="You probably don't need ExploitFixer as Paper already has its features. "
"Remove ExploitFixer.", "Remove ExploitFixer.",
inline=True) inline=True)
if "EntityTrackerFixer" in plugins: if "EntityTrackerFixer" in plugins:
embed_var.add_field(name=" EntityTrackerFixer",
embed_var.add_field(name=" EntityTrackerFixer",
value="You probably don't need EntityTrackerFixer as Paper already has its features. " value="You probably don't need EntityTrackerFixer as Paper already has its features. "
"Remove EntityTrackerFixer.", "Remove EntityTrackerFixer.",
inline=True) inline=True)
if "Orebfuscator" in plugins: if "Orebfuscator" in plugins:
embed_var.add_field(name=" Orebfuscator",
embed_var.add_field(name=" Orebfuscator",
value="You probably don't need Orebfuscator as Paper already has its features. " value="You probably don't need Orebfuscator as Paper already has its features. "
"Remove Orebfuscator.", "Remove Orebfuscator.",
inline=True) inline=True)
if "ImageOnMap" in plugins: if "ImageOnMap" in plugins:
embed_var.add_field(name=" ImageOnMap",
embed_var.add_field(name=" ImageOnMap",
value="This plugin has a [memory leak](https://github.com/zDevelopers/ImageOnMap/issues/104). If it is not essential, you should remove it. " 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 [DrMap](https://www.spigotmc.org/resources/drmap.87368/).", "Consider replacing it with [DrMap](https://www.spigotmc.org/resources/drmap.87368/).",
inline=True) inline=True)
if "CrazyActions" in plugins: if "CrazyActions" in plugins:
embed_var.add_field(name=" CrazyAuctions",
embed_var.add_field(name=" CrazyAuctions",
value="CrazyAuctions is a laggy plugin, even according to the developer. " value="CrazyAuctions is a laggy plugin, even according to the developer. "
"Consider replacing it with [AuctionHouse](https://www.spigotmc.org/resources/auctionhouse.61836/).", "Consider replacing it with [AuctionHouse](https://www.spigotmc.org/resources/auctionhouse.61836/).",
inline=True) inline=True)
if "GroupManager" in plugins: if "GroupManager" in plugins:
embed_var.add_field(name=" GroupManager",
embed_var.add_field(name=" GroupManager",
value="GroupManager is an outdated permission plugin. " 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).", "Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).",
inline=True) inline=True)
if "PermissionsEx" in plugins: if "PermissionsEx" in plugins:
embed_var.add_field(name=" PermissionsEx",
embed_var.add_field(name=" PermissionsEx",
value="PermissionsEx is an outdated permission plugin. " 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).", "Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).",
inline=True) inline=True)
if "bPermissions" in plugins: if "bPermissions" in plugins:
embed_var.add_field(name=" bPermissions",
embed_var.add_field(name=" bPermissions",
value="bPermissions is an outdated permission plugin. " 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).", "Consider replacing it with [LuckPerms](https://ci.lucko.me/job/LuckPerms/1243/artifact/bukkit/build/libs/LuckPerms-Bukkit-5.2.77.jar).",
inline=True) inline=True)
for plugin in plugins: for plugin in plugins:
if "Songoda" in r["timingsMaster"]["plugins"][plugin]["authors"]: if "Songoda" in r["timingsMaster"]["plugins"][plugin]["authors"]:
embed_var.add_field(name=" " + plugin,
embed_var.add_field(name=" " + plugin,
value="This plugin was made by Songoda. You should find an alternative.", value="This plugin was made by Songoda. You should find an alternative.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -294,17 +294,17 @@ class Timings(commands.Cog):
if using_purpur: if using_purpur:
plugins = r["timingsMaster"]["plugins"] plugins = r["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. "
"Remove SilkSpawners.", "Remove SilkSpawners.",
inline=True) inline=True)
if "MineableSpawners" in plugins: if "MineableSpawners" in plugins:
embed_var.add_field(name=" MineableSpawners",
embed_var.add_field(name=" MineableSpawners",
value="You probably don't need MineableSpawners as Purpur already has its features. " value="You probably don't need MineableSpawners as Purpur already has its features. "
"Remove MineableSpawners.", "Remove MineableSpawners.",
inline=True) inline=True)
if "VillagerLobotomizatornator" in plugins: if "VillagerLobotomizatornator" in plugins:
embed_var.add_field(name=" LimitPillagers",
embed_var.add_field(name=" LimitPillagers",
value="You probably don't need VillagerLobotomizatornator as Purpur already adds its features. " value="You probably don't need VillagerLobotomizatornator as Purpur already adds its features. "
"Enable villager.lobotomize.enabled in purpur.yml.", "Enable villager.lobotomize.enabled in purpur.yml.",
inline=True) inline=True)
@ -317,12 +317,12 @@ class Timings(commands.Cog):
phantoms_only_insomniacs = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ phantoms_only_insomniacs = r["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",
value="You probably don't need PhantomSMP as Paper already has its features. " value="You probably don't need PhantomSMP as Paper already has its features. "
"Remove PhantomSMP.", "Remove PhantomSMP.",
inline=True) inline=True)
else: else:
embed_var.add_field(name=" PhantomSMP",
embed_var.add_field(name=" PhantomSMP",
value="You probably don't need PhantomSMP as Paper already has its features. " value="You probably don't need PhantomSMP as Paper already has its features. "
"Enable phantoms-only-attack-insomniacs in paper.yml.", "Enable phantoms-only-attack-insomniacs in paper.yml.",
inline=True) inline=True)
@ -334,11 +334,11 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"]) r["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"])
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"] bungeecord = r["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. Recommended: 512.", value="Increase this in server.properties. Recommended: 512.",
inline=True) inline=True)
if network_compression_threshold != -1 and bungeecord == "true": if network_compression_threshold != -1 and bungeecord == "true":
embed_var.add_field(name=" network-compression-threshold",
embed_var.add_field(name=" network-compression-threshold",
value="Set this to -1 in server.properties for a bungee server like yours.", value="Set this to -1 in server.properties for a bungee server like yours.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -348,7 +348,7 @@ class Timings(commands.Cog):
spigot_view_distance = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"] spigot_view_distance = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["view-distance"]
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"]) view_distance = int(r["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. " value="Decrease this from default (10) in spigot.yml. "
"Recommended: 3.", "Recommended: 3.",
inline=True) inline=True)
@ -358,7 +358,7 @@ class Timings(commands.Cog):
try: try:
chunk_gc_period = int(r["timingsMaster"]["config"]["bukkit"]["chunk-gc"]["period-in-ticks"]) chunk_gc_period = int(r["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.\nRecommended: 400.", value="Decrease this in bukkit.yml.\nRecommended: 400.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -367,7 +367,7 @@ class Timings(commands.Cog):
try: try:
ticks_per_monster_spawns = int(r["timingsMaster"]["config"]["bukkit"]["ticks-per"]["monster-spawns"]) ticks_per_monster_spawns = int(r["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.\nRecommended: 4.", value="Increase this in bukkit.yml.\nRecommended: 4.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -376,7 +376,7 @@ class Timings(commands.Cog):
try: try:
monsters_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["monsters"]) monsters_spawn_limit = int(r["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.\nRecommended: 15.", value="Decrease this in bukkit.yml.\nRecommended: 15.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -385,7 +385,7 @@ class Timings(commands.Cog):
try: try:
water_ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-ambient"]) water_ambient_spawn_limit = int(r["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.\nRecommended: 2.", value="Decrease this in bukkit.yml.\nRecommended: 2.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -394,7 +394,7 @@ class Timings(commands.Cog):
try: try:
ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["ambient"]) ambient_spawn_limit = int(r["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.\nRecommended: 1.", value="Decrease this in bukkit.yml.\nRecommended: 1.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -403,7 +403,7 @@ class Timings(commands.Cog):
try: try:
animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["animals"]) animals_spawn_limit = int(r["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.\nRecommended: 3.", value="Decrease this in bukkit.yml.\nRecommended: 3.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -412,7 +412,7 @@ class Timings(commands.Cog):
try: try:
water_animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-animals"]) water_animals_spawn_limit = int(r["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.\nRecommended: 2.", value="Decrease this in bukkit.yml.\nRecommended: 2.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -424,12 +424,12 @@ class Timings(commands.Cog):
if spigot_view_distance == "default": if spigot_view_distance == "default":
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"]) view_distance = int(r["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. " value="Decrease this in spigot.yml. "
"Recommended: " + str(view_distance - 1) + ".", "Recommended: " + str(view_distance - 1) + ".",
inline=True) inline=True)
elif mob_spawn_range == 8 and int(spigot_view_distance) <= 6: elif mob_spawn_range == 8 and int(spigot_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. " value="Decrease this in spigot.yml. "
"Recommended: " + str(spigot_view_distance - 1) + ".", "Recommended: " + str(spigot_view_distance - 1) + ".",
inline=True) inline=True)
@ -441,7 +441,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 6.", "Recommended: 6.",
inline=True) inline=True)
@ -453,7 +453,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 16.", "Recommended: 16.",
inline=True) inline=True)
@ -471,7 +471,7 @@ class Timings(commands.Cog):
misc_entity_activation_range = int( misc_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["misc"]) r["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. " value="Decrease this in spigot.yml. "
"Recommended: 4.", "Recommended: 4.",
inline=True) inline=True)
@ -482,7 +482,7 @@ class Timings(commands.Cog):
water_entity_activation_range = int( water_entity_activation_range = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"]["water"]) r["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. " value="Decrease this in spigot.yml. "
"Recommended: 12.", "Recommended: 12.",
inline=True) inline=True)
@ -494,7 +494,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 16.", "Recommended: 16.",
inline=True) inline=True)
@ -513,7 +513,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["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",
value="Disable this in spigot.yml.", value="Disable this in spigot.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -522,7 +522,7 @@ class Timings(commands.Cog):
try: try:
nerf_spawner_mobs = r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["nerf-spawner-mobs"] nerf_spawner_mobs = r["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.", value="Enable this in spigot.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -539,7 +539,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 20.", "Recommended: 20.",
inline=True) inline=True)
@ -551,7 +551,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 60.", "Recommended: 60.",
inline=True) inline=True)
@ -571,7 +571,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 1.", "Recommended: 1.",
inline=True) inline=True)
@ -583,7 +583,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 40.", "Recommended: 40.",
inline=True) inline=True)
@ -595,7 +595,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 4.", "Recommended: 4.",
inline=True) inline=True)
@ -607,7 +607,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 1.", "Recommended: 1.",
inline=True) inline=True)
@ -633,7 +633,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 2.", "Recommended: 2.",
inline=True) inline=True)
@ -645,7 +645,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][ r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["entity-activation-range"][
"wake-up-inactive"]["villagers-every"]) "wake-up-inactive"]["villagers-every"])
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",
value="Decrease this in spigot.yml. " value="Decrease this in spigot.yml. "
"Recommended: 60.", "Recommended: 60.",
inline=True) inline=True)
@ -656,7 +656,7 @@ class Timings(commands.Cog):
arrow_despawn_rate = int( arrow_despawn_rate = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["arrow-despawn-rate"]) r["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. " value="Decrease this in spigot.yml. "
"Recommended: 300.", "Recommended: 300.",
inline=True) inline=True)
@ -667,7 +667,7 @@ class Timings(commands.Cog):
item_merge_radius = float( item_merge_radius = float(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["item"]) r["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. " value="Increase this in spigot.yml. "
"Recommended: 4.0.", "Recommended: 4.0.",
inline=True) inline=True)
@ -678,7 +678,7 @@ class Timings(commands.Cog):
exp_merge_radius = float( exp_merge_radius = float(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["merge-radius"]["exp"]) r["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. " value="Increase this in spigot.yml. "
"Recommended: 6.0.", "Recommended: 6.0.",
inline=True) inline=True)
@ -689,7 +689,7 @@ class Timings(commands.Cog):
max_entity_collisions = int( max_entity_collisions = int(
r["timingsMaster"]["config"]["spigot"]["world-settings"]["default"]["max-entity-collisions"]) r["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. " value="Decrease this in spigot.yml. "
"Recommended: 2.", "Recommended: 2.",
inline=True) inline=True)
@ -700,7 +700,7 @@ class Timings(commands.Cog):
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"]) r["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. " value="Decrease this in paper.yml. "
"Recommended: 6.", "Recommended: 6.",
inline=True) inline=True)
@ -711,7 +711,7 @@ class Timings(commands.Cog):
optimize_explosions = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ optimize_explosions = r["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",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -721,7 +721,7 @@ class Timings(commands.Cog):
mob_spawner_tick_rate = int( mob_spawner_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["mob-spawner-tick-rate"]) r["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. " value="Increase this in paper.yml. "
"Recommended: 2.", "Recommended: 2.",
inline=True) inline=True)
@ -733,7 +733,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["game-mechanics"][ r["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",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -743,7 +743,7 @@ class Timings(commands.Cog):
container_update_tick_rate = int( container_update_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["container-update-tick-rate"]) r["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. " value="Increase this in paper.yml. "
"Recommended: 3.", "Recommended: 3.",
inline=True) inline=True)
@ -754,7 +754,7 @@ class Timings(commands.Cog):
grass_spread_tick_rate = int( grass_spread_tick_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["grass-spread-tick-rate"]) r["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. " value="Increase this in paper.yml. "
"Recommended: 4", "Recommended: 4",
inline=True) inline=True)
@ -765,7 +765,7 @@ class Timings(commands.Cog):
soft_despawn_range = int( soft_despawn_range = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"]) r["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. " value="Decrease this in paper.yml. "
"Recommended: 28", "Recommended: 28",
inline=True) inline=True)
@ -775,7 +775,7 @@ class Timings(commands.Cog):
try: try:
hard_despawn_range = int(r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["despawn-ranges"]["soft"]) hard_despawn_range = int(r["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. " value="Decrease this in paper.yml. "
"Recommended: 48", "Recommended: 48",
inline=True) inline=True)
@ -786,7 +786,7 @@ class Timings(commands.Cog):
hopper_disable_move_event = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["hopper"][ hopper_disable_move_event = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["hopper"][
"disable-move-event"] "disable-move-event"]
if hopper_disable_move_event == "false": if hopper_disable_move_event == "false":
embed_var.add_field(name=" hopper.disable-move-event",
embed_var.add_field(name=" hopper.disable-move-event",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -796,7 +796,7 @@ class Timings(commands.Cog):
non_player_arrow_despawn_rate = int( non_player_arrow_despawn_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["non-player-arrow-despawn-rate"]) r["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. " value="Set a value in paper.yml. "
"Recommended: 60", "Recommended: 60",
inline=True) inline=True)
@ -807,7 +807,7 @@ class Timings(commands.Cog):
creative_arrow_despawn_rate = int( creative_arrow_despawn_rate = int(
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["creative-arrow-despawn-rate"]) r["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. " value="Set a value in paper.yml. "
"Recommended: 60", "Recommended: 60",
inline=True) inline=True)
@ -818,7 +818,7 @@ class Timings(commands.Cog):
prevent_moving_into_unloaded_chunks = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ prevent_moving_into_unloaded_chunks = r["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",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -828,7 +828,7 @@ class Timings(commands.Cog):
eigencraft_redstone = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ eigencraft_redstone = r["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",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -837,7 +837,7 @@ class Timings(commands.Cog):
try: try:
fix_climbing_bypass_gamerule = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["fix-climbing-bypassing-cramming-rule"] fix_climbing_bypass_gamerule = r["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.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -846,7 +846,7 @@ class Timings(commands.Cog):
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 = r["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.", value="Disable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -856,7 +856,7 @@ class Timings(commands.Cog):
plugins = r["timingsMaster"]["plugins"] plugins = r["timingsMaster"]["plugins"]
armor_stands_tick = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["armor-stands-tick"] armor_stands_tick = r["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.", value="Disable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -866,7 +866,7 @@ class Timings(commands.Cog):
per_player_mob_spawns = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ per_player_mob_spawns = r["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",
value="Enable this in paper.yml.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -876,7 +876,7 @@ class Timings(commands.Cog):
alt_item_despawn_rate_enabled = \ alt_item_despawn_rate_enabled = \
r["timingsMaster"]["config"]["paper"]["world-settings"]["default"]["alt-item-despawn-rate"]["enabled"] r["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.", value="Enable this in paper.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -892,13 +892,13 @@ class Timings(commands.Cog):
if spigot_view_distance == "default": if spigot_view_distance == "default":
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"]) view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"])
if view_distance >= 4: if view_distance >= 4:
embed_var.add_field(name=" no-tick-view-distance",
embed_var.add_field(name=" no-tick-view-distance",
value="Set a value in paper.yml. " value="Set a value in paper.yml. "
"Recommended: " + str( "Recommended: " + str(
view_distance) + ". And reduce view-distance in server.properties. Recommended: 3.", view_distance) + ". And reduce view-distance in server.properties. Recommended: 3.",
inline=True) inline=True)
elif int(spigot_view_distance) >= 4: elif int(spigot_view_distance) >= 4:
embed_var.add_field(name=" no-tick-view-distance",
embed_var.add_field(name=" no-tick-view-distance",
value="Set a value in paper.yml. " value="Set a value in paper.yml. "
"Recommended: " + spigot_view_distance + ". And reduce view-distance in spigot.yml. Recommended: 3.", "Recommended: " + spigot_view_distance + ". And reduce view-distance in spigot.yml. Recommended: 3.",
inline=True) inline=True)
@ -909,7 +909,7 @@ class Timings(commands.Cog):
enable_treasure_maps = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ enable_treasure_maps = r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][
"enable-treasure-maps"] "enable-treasure-maps"]
if enable_treasure_maps == "true": if enable_treasure_maps == "true":
embed_var.add_field(name=" enable-treasure-maps",
embed_var.add_field(name=" enable-treasure-maps",
value="Disable this in paper.yml. Why? Generating treasure maps is extremely expensive and can hang a server if the structure it's trying to locate is really far away.", value="Disable this in paper.yml. Why? Generating treasure maps is extremely expensive and can hang a server if the structure it's trying to locate is really far away.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -919,7 +919,7 @@ class Timings(commands.Cog):
projectile_load_save = int(r["timingsMaster"]["config"]["paper"]["world-settings"]["default"][ projectile_load_save = int(r["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",
value="Set a value in paper.yml. Recommended: 8.", value="Set a value in paper.yml. Recommended: 8.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -928,11 +928,11 @@ class Timings(commands.Cog):
try: try:
use_alternate_keepalive = r["timingsMaster"]["config"]["purpur"]["settings"]["use-alternate-keepalive"] use_alternate_keepalive = r["timingsMaster"]["config"]["purpur"]["settings"]["use-alternate-keepalive"]
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.", value="Enable this in purpur.yml.",
inline=True) inline=True)
if use_alternate_keepalive == "true" and "TCPShield" in plugins: if use_alternate_keepalive == "true" and "TCPShield" in plugins:
embed_var.add_field(name=" use-alternate-keepalive",
embed_var.add_field(name=" use-alternate-keepalive",
value="Disable this in purpur.yml. It causes issues with TCPShield.", value="Disable this in purpur.yml. It causes issues with TCPShield.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -942,7 +942,7 @@ class Timings(commands.Cog):
dont_send_useless_entity_packets = r["timingsMaster"]["config"]["purpur"]["settings"][ dont_send_useless_entity_packets = r["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",
value="Enable this in purpur.yml.", value="Enable this in purpur.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -953,7 +953,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["dolphin"][ r["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",
value="Enable this in purpur.yml.", value="Enable this in purpur.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -964,7 +964,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][ r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][
"brain-ticks"]) "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. " value="Increase this in purpur.yml. "
"Recommended: 4.", "Recommended: 4.",
inline=True) inline=True)
@ -976,7 +976,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][ r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][
"spawn-iron-golem"]["radius"]) "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. " value="Set a value in purpur.yml. "
"Recommended: 32.", "Recommended: 32.",
inline=True) inline=True)
@ -988,7 +988,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][ r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][
"spawn-iron-golem"]["limit"]) "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. " value="Set a value in purpur.yml. "
"Recommended: 5.", "Recommended: 5.",
inline=True) inline=True)
@ -1000,7 +1000,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["zombie"][ r["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",
value="Disable this in purpur.yml.", value="Disable this in purpur.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -1011,7 +1011,7 @@ class Timings(commands.Cog):
r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"][ r["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",
value="Disable this in purpur.yml to prevent players from creating chunk anchors.", value="Disable this in purpur.yml to prevent players from creating chunk anchors.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -1021,7 +1021,7 @@ class Timings(commands.Cog):
lobotomize_enabled = r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["mobs"]["villager"][ lobotomize_enabled = r["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",
value="Enable this in purpur.yml.", value="Enable this in purpur.yml.",
inline=True) inline=True)
except KeyError: except KeyError:
@ -1030,7 +1030,7 @@ class Timings(commands.Cog):
try: try:
teleport_if_outside_border = r["timingsMaster"]["config"]["purpur"]["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"] teleport_if_outside_border = r["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.", value="Enable this in purpur.yml.",
inline=True) inline=True)
except KeyError: except KeyError:

Loading…
Cancel
Save