mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Fixed compile issues
This commit is contained in:
parent
b0fdc2130e
commit
9fa4839ee8
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user