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
|
@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);
|
||||||
}
|
}
|
||||||
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user