From 9fa4839ee8cdd06359381d4cbd6176a551deeb70 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Tue, 26 Sep 2017 11:03:47 +0300 Subject: [PATCH] Fixed compile issues --- Plan/src/main/java/com/djrapitops/plan/Plan.java | 4 ++-- Plan/src/main/java/com/djrapitops/plan/api/API.java | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/Plan.java b/Plan/src/main/java/com/djrapitops/plan/Plan.java index 90ee7b02b..3415e55c5 100644 --- a/Plan/src/main/java/com/djrapitops/plan/Plan.java +++ b/Plan/src/main/java/com/djrapitops/plan/Plan.java @@ -233,7 +233,7 @@ public class Plan extends BukkitPlugin implements IPlan { @Override public void run() { Log.info(bootAnalysisRunMsg); - infoManager.refreshAnalysis(); + infoManager.refreshAnalysis(getServerUUID()); this.cancel(); } }).runTaskLaterAsynchronously(30 * TimeAmount.SECOND.ticks()); @@ -244,7 +244,7 @@ public class Plan extends BukkitPlugin implements IPlan { runnableFactory.createNew("PeriodicalAnalysisTask", new AbsRunnable() { @Override public void run() { - infoManager.refreshAnalysis(); + infoManager.refreshAnalysis(getServerUUID()); } }).runTaskTimerAsynchronously(analysisPeriod, analysisPeriod); } diff --git a/Plan/src/main/java/com/djrapitops/plan/api/API.java b/Plan/src/main/java/com/djrapitops/plan/api/API.java index 0a736c479..37ccbbb32 100644 --- a/Plan/src/main/java/com/djrapitops/plan/api/API.java +++ b/Plan/src/main/java/com/djrapitops/plan/api/API.java @@ -8,7 +8,6 @@ import main.java.com.djrapitops.plan.data.AnalysisData; import main.java.com.djrapitops.plan.data.additional.AnalysisType; import main.java.com.djrapitops.plan.data.additional.PluginData; import main.java.com.djrapitops.plan.systems.info.BukkitInformationManager; -import main.java.com.djrapitops.plan.systems.processing.Processor; import main.java.com.djrapitops.plan.utilities.uuid.UUIDUtility; import java.sql.SQLException; @@ -146,16 +145,7 @@ public class API { * Run the analysis. */ public void updateAnalysisCache() { - plugin.getInfoManager().refreshAnalysis(); - } - - /** - * Run the analysis and call the given processor. - * - * @param processor Processor to call after analysis has finished. - */ - public void updateAnalysisCache(Processor processor) { - plugin.getInfoManager().refreshAnalysis(); + plugin.getInfoManager().refreshAnalysis(plugin.getServerUuid()); } /**