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:
parent
2bac38385f
commit
0ae4bd2281
@ -235,12 +235,13 @@ public class Minestrike extends TeamGame
|
|||||||
if (event.GetState() != GameState.Prepare)
|
if (event.GetState() != GameState.Prepare)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
System.out.println("Hiding Scoreboard Nametags for Other Teams");
|
hideNametags();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void hideNametags() {
|
||||||
for (Team curTeam : Scoreboard.getScoreboard().getTeams())
|
for (Team curTeam : Scoreboard.getScoreboard().getTeams())
|
||||||
{
|
{
|
||||||
curTeam.setNameTagVisibility(NameTagVisibility.HIDE_FOR_OTHER_TEAMS);
|
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
|
else
|
||||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible with Instant Sniper");
|
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible with Instant Sniper");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hideNametags();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void giveMoney()
|
public void giveMoney()
|
||||||
|
Loading…
Reference in New Issue
Block a user