We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95457b commit 7bcd5cbCopy full SHA for 7bcd5cb
1 file changed
src/main/java/ch/njol/skript/doc/JSONGenerator.java
@@ -36,7 +36,7 @@ public class JSONGenerator extends DocumentationGenerator {
36
/**
37
* The current version of the JSON generator
38
*/
39
- public static final Version JSON_VERSION = new Version(1, 0);
+ public static final Version JSON_VERSION = new Version(1, 1);
40
41
private static final Gson GSON = new GsonBuilder()
42
.disableHtmlEscaping()
@@ -200,6 +200,10 @@ private static JsonArray getEventValues(SkriptEventInfo<?> info) {
200
}
201
202
203
+ if (eventValues.isEmpty()) {
204
+ return null;
205
+ }
206
+
207
JsonArray array = new JsonArray();
208
for (JsonObject eventValue : eventValues) {
209
array.add(eventValue);
0 commit comments