mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 10:20:23 +01:00
Rename bStats to metrics
Remove '"" +'
This commit is contained in:
parent
c615d9f9a2
commit
73cbf73d78
@ -7,6 +7,6 @@ public class Sql {
|
||||
public static final String BOOL = "boolean";
|
||||
|
||||
public static String VARCHAR(int length) {
|
||||
return "varchar("+length+")";
|
||||
return "varchar(" + length + ")";
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class PlaceholderUtils {
|
||||
replaceMap.put("%nicknames%", HtmlUtils.removeXSS(HtmlUtils.swapColorsToSpan(data.getNicknames().toString())));
|
||||
replaceMap.put("%name%", data.getName());
|
||||
replaceMap.put("%registered%", FormatUtils.formatTimeStampYear(data.getRegistered()));
|
||||
replaceMap.put("%timeskicked%", "" + data.getTimesKicked());
|
||||
replaceMap.put("%timeskicked%", data.getTimesKicked());
|
||||
replaceMap.put("%playtime%", FormatUtils.formatTimeAmount(data.getPlayTime()));
|
||||
replaceMap.put("%banned%", data.isBanned() ? Locale.get(Msg.HTML_BANNED).parse() : "");
|
||||
replaceMap.put("%op%", data.isOp() ? Locale.get(Msg.HTML_OP).parse() : "");
|
||||
|
@ -6,7 +6,7 @@ import main.java.com.djrapitops.plan.Settings;
|
||||
|
||||
public class BStats {
|
||||
private final Plan plugin;
|
||||
private Metrics bStats;
|
||||
private Metrics metrics;
|
||||
|
||||
public BStats(Plan plugin) {
|
||||
this.plugin = plugin;
|
||||
@ -14,8 +14,8 @@ public class BStats {
|
||||
|
||||
public void registerMetrics() {
|
||||
Log.debug("Enable", "Enabling bStats Metrics.");
|
||||
if (bStats == null) {
|
||||
bStats = new Metrics(plugin);
|
||||
if (metrics == null) {
|
||||
metrics = new Metrics(plugin);
|
||||
}
|
||||
registerConfigSettingGraphs();
|
||||
}
|
||||
@ -40,10 +40,10 @@ public class BStats {
|
||||
}
|
||||
|
||||
private void addEnabledDisabledPie(String id, boolean setting) {
|
||||
bStats.addCustomChart(new Metrics.SimplePie(id, () -> setting ? "Enabled" : "Disabled"));
|
||||
metrics.addCustomChart(new Metrics.SimplePie(id, () -> setting ? "Enabled" : "Disabled"));
|
||||
}
|
||||
|
||||
private void addStringSettingPie(String id, String setting) {
|
||||
bStats.addCustomChart(new Metrics.SimplePie(id, () -> setting));
|
||||
metrics.addCustomChart(new Metrics.SimplePie(id, () -> setting));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user