Better Tablist footer #215
@ -131,15 +131,13 @@ public class TablistManager extends BasicListener {
|
||||
}
|
||||
|
||||
private String calcHeader(ProxiedPlayer player){
|
||||
int phase = (seconds % 16) / 4;
|
||||
int phase = (seconds % 16) / 3;
|
||||
switch(phase){
|
||||
case 0:
|
||||
return Message.parse("TABLIST_PHASE_0", player, ProxyServer.getInstance().getPlayers().size());
|
||||
return Message.parse("TABLIST_PHASE_0", player);
|
||||
case 1:
|
||||
return Message.parse("TABLIST_PHASE_1", player);
|
||||
case 2:
|
||||
return Message.parse("TABLIST_PHASE_2", player);
|
||||
case 3:
|
||||
default:
|
||||
return Message.parse("TABLIST_PHASE_DEFAULT", player);
|
||||
}
|
||||
@ -161,7 +159,7 @@ public class TablistManager extends BasicListener {
|
||||
try {
|
||||
ServerInfo currentServer = player.getServer().getInfo();
|
||||
setHeader(calcHeader(player));
|
||||
setFooter("§e" + currentServer.getName() + " " + getPing() + "§8ms");
|
||||
setFooter(Message.parse("TABLIST_FOOTER", player, currentServer.getName(), getPing(), ProxyServer.getInstance().getPlayers().size()));
|
||||
setSize(size, 20);
|
||||
|
||||
int i = 0;
|
||||
|
@ -475,10 +475,10 @@ POLL_ANWSER=§7{0}
|
||||
POLL_ANWSER_HOVER=§e{0} §ewählen
|
||||
|
||||
#TablistManager
|
||||
TABLIST_PHASE_0=§8Spieler online: §e{0}
|
||||
TABLIST_PHASE_1=§8Teamspeak: §eSteam§8War.de
|
||||
TABLIST_PHASE_2=§8Discord: §8https://§eSteam§8War.de/discord
|
||||
TABLIST_PHASE_0=§8Teamspeak: §eSteam§8War.de
|
||||
TABLIST_PHASE_1=§8Discord: §8https://§eSteam§8War.de/discord
|
||||
TABLIST_PHASE_DEFAULT=§8Website: https://§eSteam§8War.de
|
||||
TABLIST_FOOTER=§e{0} {1}§8ms §eSpieler§8: §7{2}
|
||||
TABLIST_BAU=Bau
|
||||
|
||||
#EventStarter
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren