summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-12-08 09:31:20 +1100
committermd_5 <git@md-5.net>2017-12-08 09:31:20 +1100
commite46898a5e81426e59f76d0b2f2cfbf446ae20464 (patch)
tree08acbb6f954e7b58cc06aca184fba702f4ec4810
parentd063cd0d3b24012dc17f64be0c74eb6ce82db58b (diff)
downloadcraftbukkit-e46898a5e81426e59f76d0b2f2cfbf446ae20464.tar
craftbukkit-e46898a5e81426e59f76d0b2f2cfbf446ae20464.tar.gz
craftbukkit-e46898a5e81426e59f76d0b2f2cfbf446ae20464.tar.lz
craftbukkit-e46898a5e81426e59f76d0b2f2cfbf446ae20464.tar.xz
craftbukkit-e46898a5e81426e59f76d0b2f2cfbf446ae20464.zip
SPIGOT-3684: Team#setColor does not trigger scoreboard update
-rw-r--r--src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
index 22bf0655..18616fc8 100644
--- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
+++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
@@ -85,6 +85,7 @@ final class CraftTeam extends CraftScoreboardComponent implements Team {
CraftScoreboard scoreboard = checkState();
team.setColor(CraftChatMessage.getColor(color));
+ scoreboard.board.handleTeamChanged(team); // SPIGOT-3684 - backing team fires this for prefix/suffix but not colour
}
public boolean allowFriendlyFire() throws IllegalStateException {