SteamWar/BungeeCore
Archiviert
13
2

Merge pull request 'Update TablistManager' (#286) from UpdatePing into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #286
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2021-12-27 16:28:06 +01:00
Commit 308a313b32

Datei anzeigen

@ -317,7 +317,7 @@ public class TablistManager extends BasicListener {
if(slim && !displaySlim(viewer.player, player.player)) if(slim && !displaySlim(viewer.player, player.player))
continue; continue;
int ping = sameServer ? 1 : 500; int ping = sameServer ? 1 : 1000;
String name = player.defaultName.startsWith("§7") && user.getTeam() != 0 && user.getTeam() == SteamwarUser.get(player.player.getUniqueId()).getTeam() ? "§f" + player.player.getName() : player.defaultName; String name = player.defaultName.startsWith("§7") && user.getTeam() != 0 && user.getTeam() == SteamwarUser.get(player.player.getUniqueId()).getTeam() ? "§f" + player.player.getName() : player.defaultName;
viewer.setSlot(BungeeTabListPlusAPI.getIconFromPlayer(player.player), name, ping); viewer.setSlot(BungeeTabListPlusAPI.getIconFromPlayer(player.player), name, ping);
} }