From 31a9d06d2644a42201697b61524840b9d07ca361 Mon Sep 17 00:00:00 2001 From: DrBot7 <46543473+DrBot7@users.noreply.github.com> Date: Mon, 8 Feb 2021 12:06:40 -0600 Subject: [PATCH] Change luckperms link, more zgc checks --- cogs/timings.py | 15 ++++++++++++++- cogs/timings_check.yml | 6 +++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/cogs/timings.py b/cogs/timings.py index 0e1ea81..951a719 100644 --- a/cogs/timings.py +++ b/cogs/timings.py @@ -113,7 +113,20 @@ class Timings(commands.Cog): java_version = jvm_version.split(".")[0] if int(java_version) < 14: embed_var.add_field(name="❌ Java " + java_version, - value="If you are going to use ZGC, you should also use Java 14+.") + value="ZGC should only be used on Java 15.") + if "-Xmx" in flags: + max_mem = 0 + flaglist = flags.split(" ") + for flag in flaglist: + if flag.startswith("-Xmx"): + max_mem = flag.split("-Xmx")[1] + max_mem = max_mem.replace("G", "000") + max_mem = max_mem.replace("M", "") + max_mem = max_mem.replace("g", "000") + max_mem = max_mem.replace("m", "") + if int(max_mem) < 10000: + embed_var.add_field(name="❌ Low Memory", + value="ZGC is only good with a lot of memory.") elif "-Daikars.new.flags=true" in flags: if "-XX:+PerfDisableSharedMem" not in flags: embed_var.add_field(name="❌ Outdated Flags", diff --git a/cogs/timings_check.yml b/cogs/timings_check.yml index 0212900..c954dc4 100644 --- a/cogs/timings_check.yml +++ b/cogs/timings_check.yml @@ -104,17 +104,17 @@ plugins: prefix: "❌" 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://luckperms.net/download). PermissionsEx: prefix: "❌" 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://luckperms.net/download). bPermissions: prefix: "❌" 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://luckperms.net/download). PhantomSMP: - expressions: - paper["world-settings"]["default"]["phantoms-only-attack-insomniacs"] == "false"