Skip to content

Commit a7e819e

Browse files
committed
Set death message visibility to nation's team only
1 parent 5d604f2 commit a7e819e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/pro/cloudnode/smp/smpcore/Nation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public Nation(final @NotNull String id, final @NotNull String name, final @NotNu
9494
final @NotNull Team team = SMPCore.getInstance().getServer().getScoreboardManager().getMainScoreboard().registerNewTeam(id);
9595
team.setAllowFriendlyFire(false);
9696
team.setCanSeeFriendlyInvisibles(true);
97+
team.setOption(Team.Option.DEATH_MESSAGE_VISIBILITY, Team.OptionStatus.FOR_OWN_TEAM);
9798
team.displayName(Component.text(shortName).color(TextColor.color(Integer.decode("0x" + color))).hoverEvent(HoverEvent.showText(Component.text(name))));
9899
team.prefix(Component.text(shortName + " ").color(TextColor.color(Integer.decode("0x" + color))).hoverEvent(HoverEvent.showText(Component.text(name))));
99100
for (final @NotNull Member member : members()) try {

0 commit comments

Comments
 (0)