Fixed compile issues

This commit is contained in:
Rsl1122 2017-09-26 11:03:47 +03:00
parent b0fdc2130e
commit 9fa4839ee8
2 changed files with 3 additions and 13 deletions

View File

@ -233,7 +233,7 @@ public class Plan extends BukkitPlugin<Plan> implements IPlan {
@Override @Override
public void run() { public void run() {
Log.info(bootAnalysisRunMsg); Log.info(bootAnalysisRunMsg);
infoManager.refreshAnalysis(); infoManager.refreshAnalysis(getServerUUID());
this.cancel(); this.cancel();
} }
}).runTaskLaterAsynchronously(30 * TimeAmount.SECOND.ticks()); }).runTaskLaterAsynchronously(30 * TimeAmount.SECOND.ticks());
@ -244,7 +244,7 @@ public class Plan extends BukkitPlugin<Plan> implements IPlan {
runnableFactory.createNew("PeriodicalAnalysisTask", new AbsRunnable() { runnableFactory.createNew("PeriodicalAnalysisTask", new AbsRunnable() {
@Override @Override
public void run() { public void run() {
infoManager.refreshAnalysis(); infoManager.refreshAnalysis(getServerUUID());
} }
}).runTaskTimerAsynchronously(analysisPeriod, analysisPeriod); }).runTaskTimerAsynchronously(analysisPeriod, analysisPeriod);
} }

View File

@ -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.AnalysisType;
import main.java.com.djrapitops.plan.data.additional.PluginData; 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.info.BukkitInformationManager;
import main.java.com.djrapitops.plan.systems.processing.Processor;
import main.java.com.djrapitops.plan.utilities.uuid.UUIDUtility; import main.java.com.djrapitops.plan.utilities.uuid.UUIDUtility;
import java.sql.SQLException; import java.sql.SQLException;
@ -146,16 +145,7 @@ public class API {
* Run the analysis. * Run the analysis.
*/ */
public void updateAnalysisCache() { public void updateAnalysisCache() {
plugin.getInfoManager().refreshAnalysis(); plugin.getInfoManager().refreshAnalysis(plugin.getServerUuid());
}
/**
* 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();
} }
/** /**