13
0

Fix Leaderboard loading
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2024-07-21 14:11:45 +02:00
Ursprung cbc97f81e4
Commit 42f6feab25

Datei anzeigen

@ -51,7 +51,7 @@ public class Leaderboard implements Listener {
LeaderboardEntry entry = leaderboard.get(i);
RArmorStand entity = new RArmorStand(server, location.clone().add(0, (leaderboard.size() - i - 1) * 0.32, 0), RArmorStand.Size.MARKER);
SteamwarUser user = SteamwarUser.get(entry.user);
String color = "§f";
String color = "§7";
if (i == 0) {
color = "§6§l";
} else if (i < 3) {
@ -89,7 +89,7 @@ public class Leaderboard implements Listener {
entity.hide(false);
}
long time = getPlayerTime(steamwarUser);
entity.setDisplayName(calcName(steamwarUser, "§7", placement, time));
entity.setDisplayName(calcName(steamwarUser, "§f", placement, time));
}
private String calcName(SteamwarUser user, String color, int placement, long time) {