Skip to content

Commit a9df245

Browse files
committed
update template jspm.json
1 parent 28c03b9 commit a9df245

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

src/main/java/de/blazemcworld/jsscripts/JsScriptsCmd.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,26 @@ public void register() {
206206
if (!configFile.toFile().exists()) {
207207
Files.writeString(configFile, """
208208
{
209-
"author": {
210-
"name": "%s",
211-
"uuid": "%s"
212-
},
213-
"version": {
214-
"pkg": "1.0.0",
215-
"minecraft": "%s"
216-
}
217-
}
209+
"author": {
210+
"name": "%s",
211+
"uuid": "%s"
212+
},
213+
"version": {
214+
"pkg": "1.0.0",
215+
"minecraft": "%s"
216+
},
217+
"displayName": "%s",
218+
"description": "",
219+
"tags": [],
220+
"private": false
221+
}
218222
""".formatted(
219223
JsScripts.MC.getSession().getProfile().getName(),
220224
JsScripts.MC.getSession().getProfile().getId().toString(),
221-
MinecraftVersion.CURRENT.getName()
225+
MinecraftVersion.CURRENT.getName(),
226+
name
222227
));
223-
JsScripts.displayChat(Text.literal("Please update the newly created jspm.json file in the script if necessary, then retry.").formatted(Formatting.AQUA));
228+
JsScripts.displayChat(Text.literal("Please update the newly created jspm.json file in the script, then retry.").formatted(Formatting.AQUA));
224229
JsScripts.displayChat(Text.literal("It is also recommended to have a README.md and LICENSE file, as the code will be made public.").formatted(Formatting.AQUA));
225230
return;
226231
}

0 commit comments

Comments
 (0)