From 44d58339b029c39ceedeb9afd77041f495f672da Mon Sep 17 00:00:00 2001 From: elliotnichols Date: Sat, 25 Sep 2021 09:23:48 +0100 Subject: [PATCH] fix syntax issues --- cogs/timings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/timings.py b/cogs/timings.py index 74f65d5..3197380 100644 --- a/cogs/timings.py +++ b/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: