geforkt von SteamWar/BungeeCore
Ursprung
1b3ed278c6
Commit
5162c5b05b
@ -222,14 +222,9 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
item.setListed(false);
|
item.setListed(false);
|
||||||
} else if (item.getDisplayName() == null) {
|
} else if (item.getDisplayName() == null) {
|
||||||
String color = "§f";
|
String color = "§f";
|
||||||
SteamwarUser steamwarUser = SteamwarUser.get(item.getUuid());
|
UserPerm.Prefix prefix = SteamwarUser.get(item.getUuid()).prefix();
|
||||||
if (steamwarUser == null) {
|
if (prefix != UserPerm.emptyPrefix || !TablistServer.hasTeamColor(viewee, item.getUuid())) {
|
||||||
color = "§7";
|
color = prefix.getChatPrefix();
|
||||||
} else {
|
|
||||||
UserPerm.Prefix prefix = steamwarUser.prefix();
|
|
||||||
if (prefix != UserPerm.emptyPrefix || !TablistServer.hasTeamColor(viewee, item.getUuid())) {
|
|
||||||
color = prefix.getChatPrefix();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
item.setDisplayName(TextComponent.fromLegacy(color + item.getUsername()));
|
item.setDisplayName(TextComponent.fromLegacy(color + item.getUsername()));
|
||||||
}
|
}
|
||||||
@ -288,14 +283,9 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
item.setListed(false);
|
item.setListed(false);
|
||||||
} else if (item.getDisplayName() == null) {
|
} else if (item.getDisplayName() == null) {
|
||||||
String color = "§f";
|
String color = "§f";
|
||||||
SteamwarUser steamwarUser = SteamwarUser.get(item.getUuid());
|
UserPerm.Prefix prefix = SteamwarUser.get(item.getUuid()).prefix();
|
||||||
if (steamwarUser == null) {
|
if (prefix != UserPerm.emptyPrefix || !TablistServer.hasTeamColor(viewee, item.getUuid())) {
|
||||||
color = "§7";
|
color = prefix.getChatPrefix();
|
||||||
} else {
|
|
||||||
UserPerm.Prefix prefix = steamwarUser.prefix();
|
|
||||||
if (prefix != UserPerm.emptyPrefix || !TablistServer.hasTeamColor(viewee, item.getUuid())) {
|
|
||||||
color = prefix.getChatPrefix();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
item.setDisplayName(TextComponent.fromLegacy(color + item.getUsername()));
|
item.setDisplayName(TextComponent.fromLegacy(color + item.getUsername()));
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren