Browse Source

fix syntax issues

master
elliotnichols 3 years ago
parent
commit
44d58339b0
  1. 4
      cogs/timings.py

4
cogs/timings.py

@ -83,7 +83,7 @@ class Timings(commands.Cog):
if version_result:
if compare_versions(version_result, TIMINGS_CHECK["version"]) == -1:
version = version.replace("git-", "").replace("MC: ", "")
embed_var.add_field(name="❌ Outdated",
embed_var.add_field(name="❌ Outdated")
else:
embed_var.add_field(name="❗ Value Error",
value=f'Could not locate version from `{version}`')
@ -108,7 +108,7 @@ class Timings(commands.Cog):
if "openj9" in jvm_version:
embed_var.add_field(name="⚠️ Java Version",
value=f"You are using OpenJ9. This JVM implementation favors low ram usage vs throughput. This can reduce RAM usage by up to 50%, but at the cost of max players. This is useful to offset servers where RAM is the bottleneck. This is one tool for reducing lag that requires extensive knowledge to use properly.")
else if jvm_version.startswith("1.8.") or jvm_version.startswith("9.") or jvm_version.startswith("10."):
elif jvm_version.startswith("1.8.") or jvm_version.startswith("9.") or jvm_version.startswith("10."):
embed_var.add_field(name="❌ Java Version",
value=f"You are using Java {jvm_version}. Update to [Java 16](https://adoptopenjdk.net/installation.html).")
except KeyError as key:

Loading…
Cancel
Save