Hologram nice text formatting #2
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
ce74b70a94
Commit
ed5a0fbd7c
@ -29,7 +29,6 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
@ -108,9 +107,9 @@ public class FightserverPortal implements PortalHandler, Comparable<FightserverP
|
|||||||
FightInfoPacket info = server.current();
|
FightInfoPacket info = server.current();
|
||||||
|
|
||||||
if (fightStateCountdown(info.getFightState()))
|
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
|
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() {
|
public void updateBluePlayers() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren