Skip to content

Commit

Permalink
update template jspm.json
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazeMCworld committed Jun 27, 2023
1 parent 28c03b9 commit a9df245
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/main/java/de/blazemcworld/jsscripts/JsScriptsCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,26 @@ public void register() {
if (!configFile.toFile().exists()) {
Files.writeString(configFile, """
{
"author": {
"name": "%s",
"uuid": "%s"
},
"version": {
"pkg": "1.0.0",
"minecraft": "%s"
}
}
"author": {
"name": "%s",
"uuid": "%s"
},
"version": {
"pkg": "1.0.0",
"minecraft": "%s"
},
"displayName": "%s",
"description": "",
"tags": [],
"private": false
}
""".formatted(
JsScripts.MC.getSession().getProfile().getName(),
JsScripts.MC.getSession().getProfile().getId().toString(),
MinecraftVersion.CURRENT.getName()
MinecraftVersion.CURRENT.getName(),
name
));
JsScripts.displayChat(Text.literal("Please update the newly created jspm.json file in the script if necessary, then retry.").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Please update the newly created jspm.json file in the script, then retry.").formatted(Formatting.AQUA));
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));
return;
}
Expand Down

0 comments on commit a9df245

Please sign in to comment.