mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-08 17:37:34 +01:00
Fixed player nicknames not getting colors translated
This commit is contained in:
parent
bb422df600
commit
63434cc8e0
@ -33,9 +33,11 @@ import com.djrapitops.plan.system.settings.theme.Theme;
|
||||
import com.djrapitops.plan.system.settings.theme.ThemeVal;
|
||||
import com.djrapitops.plan.utilities.formatting.Formatter;
|
||||
import com.djrapitops.plan.utilities.formatting.Formatters;
|
||||
import com.djrapitops.plan.utilities.html.Html;
|
||||
import com.djrapitops.plan.utilities.html.graphs.Graphs;
|
||||
import com.djrapitops.plan.utilities.html.graphs.pie.WorldPie;
|
||||
import com.djrapitops.plan.utilities.html.structure.ServerAccordion;
|
||||
import org.apache.commons.text.StringEscapeUtils;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
@ -275,7 +277,7 @@ public class PlayerJSONParser {
|
||||
List<Nickname> mapped = new ArrayList<>();
|
||||
for (com.djrapitops.plan.data.store.objects.Nickname nickname : nicknames) {
|
||||
mapped.add(new Nickname(
|
||||
nickname.getName(),
|
||||
Html.swapColorCodesToSpan(StringEscapeUtils.escapeHtml4(nickname.getName())),
|
||||
serverNames.getOrDefault(nickname.getServerUUID(), nickname.getServerUUID().toString()),
|
||||
dateFormatter.apply(nickname.getDate())
|
||||
));
|
||||
|
@ -957,3 +957,70 @@ div.scrollbar {
|
||||
.col-plan {
|
||||
color: #368F17;
|
||||
}
|
||||
|
||||
/* Minecraft color codes */
|
||||
.black {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.darkblue {
|
||||
color: #0000AA;
|
||||
}
|
||||
|
||||
.darkgreen {
|
||||
color: #00AA00;
|
||||
}
|
||||
|
||||
.darkaqua {
|
||||
color: #00AAAA;
|
||||
}
|
||||
|
||||
.darkred {
|
||||
color: #AA0000;
|
||||
}
|
||||
|
||||
.darkpurple {
|
||||
color: #AA00AA;
|
||||
}
|
||||
|
||||
.gold {
|
||||
color: #FFAA00;
|
||||
}
|
||||
|
||||
.gray {
|
||||
color: #AAAAAA;
|
||||
}
|
||||
|
||||
.darkgray {
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
.blue {
|
||||
color: #5555FF;
|
||||
}
|
||||
|
||||
.green {
|
||||
color: #55FF55;
|
||||
}
|
||||
|
||||
.aqua {
|
||||
color: #55FFFF;
|
||||
}
|
||||
|
||||
.red {
|
||||
color: #FF5555;
|
||||
}
|
||||
|
||||
.pink {
|
||||
color: #FF55FF;
|
||||
}
|
||||
|
||||
.yellow {
|
||||
color: #FFFF55;
|
||||
text-shadow: 0 0 6px #000;
|
||||
}
|
||||
|
||||
.white {
|
||||
color: #FFFFFF;
|
||||
text-shadow: 0 0 8px #000;
|
||||
}
|
Loading…
Reference in New Issue
Block a user