Browse Source

Update timings.py

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

18
cogs/timings.py

@ -48,7 +48,7 @@ class Timings(commands.Cog):
embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url)
embed_var.url = timings_url
unchecked = 0
try:
try:
version = r["timingsMaster"]["version"]
if "1.16.4" not in version:
@ -187,6 +187,16 @@ class Timings(commands.Cog):
value="Plugins that claim to remove lag actually cause more lag. "
"Remove ServerBooster.",
inline=True)
if "MobLimiter" in plugins:
embed_var.add_field(name="❌ MobLimiter",
value="You probably don't need MobLimiter as Bukkit already has its features. "
"Remove MobLimiter.",
inline=True)
if "BookLimiter" in plugins:
embed_var.add_field(name="❌ BookLimiter",
value="You probably don't need BookLimiter as Paper already has its features. "
"Remove BookLimiter.",
inline=True)
if "LimitPillagers" in plugins:
embed_var.add_field(name="❌ LimitPillagers",
value="You probably don't need LimitPillagers as Paper already adds its features. "
@ -1036,6 +1046,12 @@ class Timings(commands.Cog):
inline=True)
except KeyError:
unchecked = unchecked + 1
except ValueError:
embed_var.add_field(name="❌ Invalid Configuration",
value="At least one of your configuration files had an invalid data type.",
inline=True)
await message.channel.send(embed=embed_var)
return
if len(embed_var.fields) == 0:
embed_var.add_field(name="✅ All good",

Loading…
Cancel
Save