From da7c21d32ad6e055a54d87292eed750539a02626 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 15 Jan 2020 17:20:40 -0500 Subject: [PATCH] Removed metrics from API We shouldn't have exposed it in the first place. --- .../src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 7 +++---- worldedit-core/src/main/java/com/boydti/fawe/Fawe.java | 5 ----- worldedit-core/src/main/java/com/boydti/fawe/IFawe.java | 2 -- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index 7bf592878..266fbecd1 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -102,6 +102,9 @@ public class FaweBukkit implements IFawe, Listener { new ChunkListener_9(); } }); + + //Start Metrics + new Metrics(plugin); } @Override // Please don't delete this again, it's WIP @@ -180,10 +183,6 @@ public class FaweBukkit implements IFawe, Listener { return BukkitAdapter.adapt(player); } - @Override public void startMetrics() { - new Metrics(plugin); - } - public ItemUtil getItemUtil() { ItemUtil tmp = itemUtil; if (tmp == null) { diff --git a/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java b/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java index 782d798a6..0d692550f 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/Fawe.java @@ -190,11 +190,6 @@ public class Fawe { WEManager.IMP.managers.add(new PlotSquaredFeature()); log.debug("Plugin 'PlotSquared' found. Using it now."); } catch (Throwable ignored) {} - try { - imp().startMetrics(); - } catch (Throwable e) { - debug(e.getMessage()); - } }, 0); TaskManager.IMP.repeat(timer, 1); diff --git a/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java b/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java index d8cbb27f4..7c363351e 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java @@ -27,8 +27,6 @@ public interface IFawe { Collection getMaskManagers(); - void startMetrics(); - default ImageViewer getImageViewer(Player player) { return null; }