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
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<Plan> implements IPlan {
runnableFactory.createNew("PeriodicalAnalysisTask", new AbsRunnable() {
@Override
public void run() {
infoManager.refreshAnalysis();
infoManager.refreshAnalysis(getServerUUID());
}
}).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.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());
}
/**