fix(arena): keep vigilante victory private
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user