Archiviert
1
0

Update Tablist slim Mode!

Dieser Commit ist enthalten in:
yoyosource 2021-06-24 17:41:05 +02:00
Ursprung 66899e8df1
Commit 8705e19aec
2 geänderte Dateien mit 7 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -130,9 +130,9 @@ public class TablistManager extends BasicListener {
int phase = (seconds % 16) / 3; int phase = (seconds % 16) / 3;
switch(phase){ switch(phase){
case 0: case 0:
return Message.parse("TABLIST_PHASE_0", player);
case 1:
return Message.parse("TABLIST_PHASE_1", player); return Message.parse("TABLIST_PHASE_1", player);
case 1:
return Message.parse("TABLIST_PHASE_2", player);
case 2: case 2:
default: default:
return Message.parse("TABLIST_PHASE_DEFAULT", player); return Message.parse("TABLIST_PHASE_DEFAULT", player);
@ -153,7 +153,8 @@ public class TablistManager extends BasicListener {
private void refresh(){ private void refresh(){
ServerInfo currentServer = player.getServer().getInfo(); ServerInfo currentServer = player.getServer().getInfo();
setHeader(calcHeader(player)); setHeader(calcHeader(player));
setFooter(Message.parse("TABLIST_FOOTER", player, currentServer.getName(), getPing(), ProxyServer.getInstance().getPlayers().size())); // TABLIST_FOOTER=§e{0} {1}§8ms §eSpieler§8: §7{2}
setFooter("§e" + currentServer.getName() + " " + getPing() + "§8ms §eSpieler§8: §7" + ProxyServer.getInstance().getPlayers().size());
setSize(size, 20); setSize(size, 20);
if (size >= 5) { if (size >= 5) {

Datei anzeigen

@ -475,10 +475,10 @@ POLL_ANWSER=§7{0}
POLL_ANWSER_HOVER=§e{0} §ewählen POLL_ANWSER_HOVER=§e{0} §ewählen
#TablistManager #TablistManager
TABLIST_PHASE_0=§8Teamspeak: §eSteam§8War.de TABLIST_PHASE_0=§8Spieler online: §e{0}
TABLIST_PHASE_1=§8Discord: §8https://§eSteam§8War.de/discord TABLIST_PHASE_1=§8Teamspeak: §eSteam§8War.de
TABLIST_PHASE_2=§8Discord: §8https://§eSteam§8War.de/discord
TABLIST_PHASE_DEFAULT=§8Website: https://§eSteam§8War.de TABLIST_PHASE_DEFAULT=§8Website: https://§eSteam§8War.de
TABLIST_FOOTER=§e{0} {1}§8ms §eSpieler§8: §7{2}
TABLIST_BAU=Bau TABLIST_BAU=Bau
#EventStarter #EventStarter