fix(arena): keep vigilante victory private
Release / release (push) Successful in 4m34s
CI / build (push) Successful in 1m16s

This commit is contained in:
dmg
2026-09-04 22:05:28 -04:00
parent 17a5c66575
commit 4b6c709157
4 changed files with 26 additions and 1 deletions
@@ -416,6 +416,13 @@ public final class RoleArenaController implements Listener, Runnable {
barrier.clear();
Player winner = server.getPlayer(playerId);
moveWinnerOutside(winner);
if (role == ArenaRole.VIGILANTE) {
if (winner != null) {
winner.sendMessage(ChatColor.YELLOW
+ "You defeated the arena boss and became the Vigilante!");
}
return;
}
String name = Optional.ofNullable(winner)
.map(Player::getName).orElse(playerId.toString());
String message = ChatColor.YELLOW + name + " defeated the arena boss and is the "