Skip to content

Commit

Permalink
Fix /ess dump on 1.8.8 (EssentialsX#4489)
Browse files Browse the repository at this point in the history
Fixes EssentialsX#4487

pain
  • Loading branch information
JRoy authored Aug 27, 2021
1 parent 69850d8 commit 4811eb1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.gson.JsonArray;
import com.google.gson.JsonNull;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down Expand Up @@ -237,7 +239,9 @@ private void runDump(Server server, CommandSource sender, String commandLabel, S
pluginData.addProperty("unsupported", warnPlugins.contains(name));

final JsonArray authors = new JsonArray();
info.getAuthors().forEach(authors::add);
for (final String author : info.getAuthors()) {
authors.add(author == null ? JsonNull.INSTANCE : new JsonPrimitive(author));
}
pluginData.add("authors", authors);

if (name.startsWith("Essentials") && !name.equals("Essentials")) {
Expand Down

0 comments on commit 4811eb1

Please # to comment.