From 4522d98934ccd9481bbf57ed1430c6ddd4d1bbaf Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 11 May 2019 14:31:13 +0100 Subject: [PATCH] Don't force metrics. Forcing metrics is against the precedent for all major Spigot plugins --- .../intellectualsites/plotsquared/bukkit/BukkitMain.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java index 42e9ff489..580aca74d 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java @@ -193,7 +193,11 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain getLogger().warning("Update checking disabled. Skipping."); } - this.startMetrics(); + if (Settings.Enabled_Components.METRICS) { + this.startMetrics(); + } else { + PlotSquared.log(Captions.CONSOLE_PLEASE_ENABLE_METRICS.f(getPluginName())); + } if (Settings.Enabled_Components.WORLDS) { TaskManager.IMP.taskRepeat(this::unload, 20); try {