event.getMessages().add(new ScoreboardScoreMessage(event.getKey(), event.isRemove(), event.getObjectiveName(), event.getValue()));
}
@EventHandler
public void onTeamAction(TeamActionEvent event) {
Team team = event.getTeam();
event.getMessages().add(new ScoreboardTeamMessage(
team.getName(), event.getAction(),
team.getDisplayName(),
team.getPrefix(), team.getSuffix(),
team.isFriendlyFire(), event.getPlayers()
));
}