Correct implementation of FTeamWrapper::updatePrefix
This commit is contained in:
parent
29836a9183
commit
917c442b59
@ -139,10 +139,8 @@ public class FTeamWrapper {
|
|||||||
|
|
||||||
private void updatePrefix(FScoreboard fboard) {
|
private void updatePrefix(FScoreboard fboard) {
|
||||||
if (P.p.getConfig().getBoolean("scoreboard.default-prefixes", false)) {
|
if (P.p.getConfig().getBoolean("scoreboard.default-prefixes", false)) {
|
||||||
|
FPlayer fplayer = fboard.getFPlayer();
|
||||||
for (Map.Entry<FScoreboard, Team> entry : teams.entrySet()) {
|
Team team = teams.get(fboard);
|
||||||
FPlayer fplayer = entry.getKey().getFPlayer();
|
|
||||||
Team team = entry.getValue();
|
|
||||||
|
|
||||||
String prefix = TL.DEFAULT_PREFIX.toString();
|
String prefix = TL.DEFAULT_PREFIX.toString();
|
||||||
prefix = prefix.replace("{relationcolor}", faction.getRelationTo(fplayer).getColor().toString());
|
prefix = prefix.replace("{relationcolor}", faction.getRelationTo(fplayer).getColor().toString());
|
||||||
@ -152,7 +150,6 @@ public class FTeamWrapper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void addPlayer(OfflinePlayer player) {
|
private void addPlayer(OfflinePlayer player) {
|
||||||
if (members.add(player.getUniqueId())) {
|
if (members.add(player.getUniqueId())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user