From da45813a065024000e0939e799744fa1859d50b5 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 22 Feb 2021 15:18:20 +0100 Subject: [PATCH] Add new metrics pies --- .../src/main/java/com/plotsquared/bukkit/BukkitPlatform.java | 2 ++ .../java/com/plotsquared/core/configuration/Settings.java | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java index 9993f3b3d..eb606a00c 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java @@ -1065,6 +1065,8 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl "worldedit_implementation", () -> Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") != null ? "FastAsyncWorldEdit" : "WorldEdit" )); + metrics.addCustomChart(new SimplePie("offline_mode", () -> Settings.UUID.OFFLINE ? "true" : "false")); + metrics.addCustomChart(new SimplePie("offline_mode_force", () -> Settings.UUID.FORCE_LOWERCASE ? "true" : "false")); } @Override diff --git a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java index c5de47d69..7ae0a1df9 100644 --- a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java +++ b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java @@ -145,8 +145,6 @@ public class Settings extends Config { Web.URL = config.getString("web.url", Web.URL); // Caching - Enabled_Components.PERMISSION_CACHE = - config.getBoolean("cache.permissions", Enabled_Components.PERMISSION_CACHE); Enabled_Components.RATING_CACHE = config.getBoolean("cache.ratings", Enabled_Components.RATING_CACHE); @@ -688,8 +686,6 @@ public class Settings extends Config { UPDATE_NOTIFICATIONS = true; @Comment("Stores user metadata in a database") public static boolean PERSISTENT_META = true; - @Comment("Optimizes permission checks") - public static boolean PERMISSION_CACHE = true; @Comment("Getting a rating won't need the database") public static boolean RATING_CACHE = true;