13
0

Hologram nice text formatting #2
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-03-11 17:14:15 +01:00
Ursprung ce74b70a94
Commit ed5a0fbd7c

Datei anzeigen

@ -29,7 +29,6 @@ import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
import java.text.MessageFormat;
import java.util.*;
import java.util.logging.Level;
@ -108,9 +107,9 @@ public class FightserverPortal implements PortalHandler, Comparable<FightserverP
FightInfoPacket info = server.current();
if (fightStateCountdown(info.getFightState()))
hologram.updateText(MessageFormat.format("§7{0} §e{1} §7{2}§8:§7{3}", server.getServerName(), fightStateMapper(info.getFightState()), info.getCountdown() / 60, info.getCountdown() % 60));
hologram.updateText(String.format("§7%s §e%s §7%d§8:§7%02d", server.getServerName(), fightStateMapper(info.getFightState()), info.getCountdown() / 60, info.getCountdown() % 60));
else
hologram.updateText(MessageFormat.format("§7{0} §e{1}", server.getServerName(), fightStateMapper(info.getFightState())));
hologram.updateText(String.format("§7%s §e%s", server.getServerName(), fightStateMapper(info.getFightState())));
}
public void updateBluePlayers() {