mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 03:51:45 +01:00
Added replacement values for ${refresh} #320
This commit is contained in:
parent
984f982a35
commit
ec602a8b6a
@ -10,6 +10,7 @@ import main.java.com.djrapitops.plan.Settings;
|
||||
import main.java.com.djrapitops.plan.api.IPlan;
|
||||
import main.java.com.djrapitops.plan.api.exceptions.ParseException;
|
||||
import main.java.com.djrapitops.plan.data.AnalysisData;
|
||||
import main.java.com.djrapitops.plan.utilities.FormatUtils;
|
||||
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
||||
import main.java.com.djrapitops.plan.utilities.file.FileUtil;
|
||||
import main.java.com.djrapitops.plan.utilities.html.HtmlUtils;
|
||||
@ -37,6 +38,7 @@ public class AnalysisPageParser extends PageParser {
|
||||
addValue("tabContentPlugins", data.replacePluginsTabLayout());
|
||||
addValue("serverName", Settings.SERVER_NAME.toString());
|
||||
addValue("timeZone", MiscUtils.getTimeZoneOffsetHours());
|
||||
addValue("refresh", FormatUtils.formatTimeStamp(data.getRefreshDate()));
|
||||
|
||||
addValue("playersMax", plugin.getVariable().getMaxPlayers());
|
||||
addValue("playersOnline", getPlayersOnline());
|
||||
|
@ -107,6 +107,9 @@ public class InspectPageParser extends PageParser {
|
||||
addValue("contentServerOverview", HtmlStructure.createServerOverviewColumn(sessions));
|
||||
|
||||
long now = MiscUtils.getTime();
|
||||
|
||||
addValue("refresh", FormatUtils.formatTimeStamp(now));
|
||||
|
||||
long dayAgo = now - TimeAmount.DAY.ms();
|
||||
long weekAgo = now - TimeAmount.WEEK.ms();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user