From 9f424522ac64400f24be83a62de023ecce8906e6 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 26 Oct 2020 21:00:08 -0400 Subject: [PATCH] Authors should be a JSON array --- .../com/velocitypowered/proxy/util/InformationUtils.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/InformationUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/util/InformationUtils.java index f53e3b5c8..89f24ab9c 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/InformationUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/InformationUtils.java @@ -23,8 +23,6 @@ import java.net.InetSocketAddress; import java.util.List; import java.util.Map; -import joptsimple.internal.Strings; - public enum InformationUtils { ; @@ -51,8 +49,11 @@ public enum InformationUtils { current.addProperty("version", desc.getVersion().get()); } if (!desc.getAuthors().isEmpty()) { - current.addProperty("authors", - Strings.join(desc.getAuthors(), ",")); + JsonArray authorsArray = new JsonArray(); + for (String author : desc.getAuthors()) { + authorsArray.add(author); + } + current.add("authors", authorsArray); } if (desc.getDescription().isPresent()) { current.addProperty("description", desc.getDescription().get());