mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-27 02:21:30 +01:00
Fixed #297
This commit is contained in:
parent
3892fb6e3c
commit
3b8e460912
@ -81,7 +81,7 @@ public class Plan extends BukkitPlugin<Plan> implements IPlan {
|
||||
|
||||
private WebServer webServer;
|
||||
|
||||
private InformationManager infoManager;
|
||||
private BukkitInformationManager infoManager;
|
||||
private BukkitServerInfoManager serverInfoManager;
|
||||
|
||||
private ServerVariableHolder serverVariableHolder;
|
||||
@ -260,6 +260,13 @@ public class Plan extends BukkitPlugin<Plan> implements IPlan {
|
||||
}).runTaskTimerAsynchronously(analysisPeriod, analysisPeriod);
|
||||
}
|
||||
|
||||
runnableFactory.createNew("PeriodicNetworkBoxRefreshTask", new AbsRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
infoManager.updateNetworkPageContent();
|
||||
}
|
||||
}).runTaskTimerAsynchronously(TimeAmount.SECOND.ticks(), TimeAmount.MINUTE.ticks() * 5L);
|
||||
|
||||
Benchmark.stop("Enable", "Task Registration");
|
||||
}
|
||||
|
||||
|
@ -317,10 +317,6 @@ public class BungeeInformationManager extends InformationManager {
|
||||
return plugin.getWebServer().getAccessAddress();
|
||||
}
|
||||
|
||||
public void askForNetWorkPageContent() {
|
||||
// TODO WebAPI for network page content
|
||||
}
|
||||
|
||||
public void cacheNetworkPageContent(UUID serverUUID, String html) {
|
||||
networkPageContent.put(serverUUID, html);
|
||||
}
|
||||
|
@ -126,7 +126,8 @@ public class PlanPlayerListener implements Listener {
|
||||
|
||||
plugin.addToProcessQueue(
|
||||
new BanAndOpProcessor(uuid, player.isBanned(), player.isOp()),
|
||||
new EndSessionProcessor(uuid, time)
|
||||
new EndSessionProcessor(uuid, time),
|
||||
new NetworkPageUpdateProcessor(plugin.getInfoManager())
|
||||
);
|
||||
|
||||
if (cache.isFirstSession(uuid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user