class ChatFormatter {

    public String getChatMessage(UUID uuid, String message) {
        PlayerProfile profile = playerProfileRepository.get(uuid);
        return String.format("[%s] %s: %s", profile.getRank().getPrefix(), profile.getName(), message);
    }

}