Rename bStats to metrics

Remove '"" +'
This commit is contained in:
Fuzzlemann 2017-08-16 17:51:32 +02:00
parent c615d9f9a2
commit 73cbf73d78
3 changed files with 7 additions and 7 deletions

View File

@ -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 + ")";
}
}

View File

@ -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() : "");

View File

@ -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));
}
}