PC-938 PC-1294

For whatever reason, Minestrike nametags don't hide properly on
hotjoining. This is a simple fix which just resets all nametag
visibilities on game reset. Should work, right?
This commit is contained in:
samczsun 2017-01-01 13:58:31 -05:00 committed by cnr
parent 2bac38385f
commit 0ae4bd2281
1 changed files with 7 additions and 4 deletions

View File

@ -234,13 +234,14 @@ public class Minestrike extends TeamGame
{
if (event.GetState() != GameState.Prepare)
return;
System.out.println("Hiding Scoreboard Nametags for Other Teams");
hideNametags();
}
private void hideNametags() {
for (Team curTeam : Scoreboard.getScoreboard().getTeams())
{
curTeam.setNameTagVisibility(NameTagVisibility.HIDE_FOR_OTHER_TEAMS);
//UtilServer.getServer().dispatchCommand(UtilServer.getServer().getConsoleSender(),
// "scoreboard teams option " + curTeam.getName() + " nametagVisibility hideForOtherTeams");
}
}
@ -997,6 +998,8 @@ public class Minestrike extends TeamGame
else
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible with Instant Sniper");
}
hideNametags();
}
public void giveMoney()