From 891bb90a3af8c94d18b2758623df7ec711336d89 Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Sat, 12 Aug 2017 12:57:33 +0200 Subject: [PATCH] Removes unnecessary brackets --- .../com/djrapitops/plan/utilities/PlaceholderUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/PlaceholderUtils.java b/Plan/src/main/java/com/djrapitops/plan/utilities/PlaceholderUtils.java index 4d20728b3..08d22443f 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/PlaceholderUtils.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/PlaceholderUtils.java @@ -45,7 +45,7 @@ public class PlaceholderUtils { replaceMap.put("%plugins%", data.replacePluginsTabLayout()); replaceMap.put("%refresh%", FormatUtils.formatTimeAmountDifference(data.getRefreshDate(), MiscUtils.getTime())); - replaceMap.put("%refreshlong%", data.getRefreshDate() + ""); + replaceMap.put("%refreshlong%", String.valueOf(data.getRefreshDate())); replaceMap.put("%servername%", Settings.SERVER_NAME.toString()); @@ -94,7 +94,7 @@ public class PlaceholderUtils { gmPart.analyse(); replaceMap.putAll(gmPart.getReplaceMap()); - replaceMap.put("%ips%", (showIPandUUID ? data.getIps().toString() : "Hidden (Config)")); + replaceMap.put("%ips%", showIPandUUID ? data.getIps().toString() : "Hidden (Config)"); replaceMap.put("%nicknames%", HtmlUtils.removeXSS(HtmlUtils.swapColorsToSpan(data.getNicknames().toString()))); replaceMap.put("%name%", data.getName()); replaceMap.put("%registered%", FormatUtils.formatTimeStampYear(data.getRegistered())); @@ -102,7 +102,7 @@ public class PlaceholderUtils { 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() : ""); - replaceMap.put("%isonline%", (data.isOnline()) ? Locale.get(Msg.HTML_ONLINE).parse() : Locale.get(Msg.HTML_OFFLINE).parse()); + replaceMap.put("%isonline%", data.isOnline() ? Locale.get(Msg.HTML_ONLINE).parse() : Locale.get(Msg.HTML_OFFLINE).parse()); replaceMap.put("%deaths%", data.getDeaths()); replaceMap.put("%playerkills%", data.getPlayerKills().size()); replaceMap.put("%mobkills%", data.getMobKills());