diff --git a/src/main/java/org/skriptlang/skript/bukkit/SkriptMetrics.java b/src/main/java/org/skriptlang/skript/bukkit/SkriptMetrics.java index e57c4ec7700..4fa2865378c 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/SkriptMetrics.java +++ b/src/main/java/org/skriptlang/skript/bukkit/SkriptMetrics.java @@ -120,12 +120,14 @@ public static void setupMetrics(Metrics metrics) { metrics.addCustomChart(new DrilldownPie("drilldownLogVerbosity", () -> { String verbosity = SkriptConfig.verbosity.value().name().toLowerCase(Locale.ENGLISH).replace('_', ' '); - return isDefaultMap(verbosity, SkriptConfig.verbosity.defaultValue()); + String defaultValue = SkriptConfig.verbosity.defaultValue().name().toLowerCase(Locale.ENGLISH).replace('_', ' '); + return isDefaultMap(verbosity, defaultValue); })); metrics.addCustomChart(new DrilldownPie("drilldownPluginPriority", () -> { String priority = SkriptConfig.defaultEventPriority.value().name().toLowerCase(Locale.ENGLISH).replace('_', ' '); - return isDefaultMap(priority, SkriptConfig.defaultEventPriority.defaultValue()); + String defaultValue = SkriptConfig.defaultEventPriority.defaultValue().name().toLowerCase(Locale.ENGLISH).replace('_', ' '); + return isDefaultMap(priority, defaultValue); })); metrics.addCustomChart(new SimplePie("cancelledByDefault", () -> SkriptConfig.listenCancelledByDefault.value().toString() @@ -143,10 +145,10 @@ public static void setupMetrics(Metrics metrics) { SkriptConfig.caseSensitive.value().toString() )); metrics.addCustomChart(new SimplePie("caseSensitiveVariables", () -> - SkriptConfig.caseInsensitiveVariables.value().toString() + String.valueOf(!SkriptConfig.caseInsensitiveVariables.value()) )); metrics.addCustomChart(new SimplePie("caseSensitiveCommands", () -> - SkriptConfig.caseInsensitiveCommands.value().toString() + String.valueOf(!SkriptConfig.caseInsensitiveCommands.value()) )); metrics.addCustomChart(new SimplePie("disableSaveWarnings", () ->