From d405ea14f7ba202be13a1afb4edd2dd3b00d5807 Mon Sep 17 00:00:00 2001 From: Cow Science <61924259+ProjectDF@users.noreply.github.com> Date: Sat, 23 Nov 2024 22:07:40 -0600 Subject: [PATCH 1/2] Update NbsCommand Give Command --- .../helpbot/bot/command/impl/other/fun/NbsCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java index 9ba93905..2a6a9eeb 100644 --- a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java +++ b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java @@ -68,10 +68,9 @@ public void run(CommandEvent event) { byte[] b64 = new NBSToTemplate(NBSDecoder.parse(file)).convert(); File templateOutputfile = File.createTempFile("nbs_output", ".txt"); BufferedWriter writer = new BufferedWriter(new FileWriter(templateOutputfile)); - writer.write(String.format("/give @p minecraft:ender_chest{display:{Name:'[{\"text\":\"» \",\"color\":\"gold\"},{\"text\":\"Code Template\",\"color\":\"yellow\",\"bold\":true}]'},PublicBukkitValues:{\"hypercube:codetemplatedata\":'{\"name\":\"&6» &e&lCode Template\",\"version\":1,\"code\":\"%s\",\"author\":\"helpbot\"}'}} 1", new String(b64))); + writer.write(String.format("/give @p minecraft:note_block[minecraft:custom_name='{\"extra\":[{\"bold\":true,\"color\":\"aqua\",\"italic\":false,\"obfuscated\":false,\"strikethrough\":false,\"text\":\"Function \",\"underlined\":false},{\"bold\":false,\"color\":\"dark_aqua\",\"italic\":false,\"text":\"» \"},{\"color\":\"aqua\",\"italic\":false,\"text\":\"Nbs Song\"}],\"text\":\"\"}', minecraft:custom_data={PublicBukkitValues:{\"hypercube:codetemplatedata\":'{\"author\":\"Help Bot\",\"name\":\"&b&lFunction &3» &bNbs Song\",\"version\":1,\"code\":\"%s\"}'}}]", new String(b64))); writer.close(); - EmbedBuilder embed = new EmbedBuilder() .setColor(new Color(70,199,82)) From 6314210eb483a893193983d0c04b1d1849ed39ef Mon Sep 17 00:00:00 2001 From: Cow Science <61924259+ProjectDF@users.noreply.github.com> Date: Sat, 23 Nov 2024 22:17:51 -0600 Subject: [PATCH 2/2] Update NbsCommand.java --- .../helpbot/bot/command/impl/other/fun/NbsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java index 2a6a9eeb..1b083540 100644 --- a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java +++ b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java @@ -68,7 +68,7 @@ public void run(CommandEvent event) { byte[] b64 = new NBSToTemplate(NBSDecoder.parse(file)).convert(); File templateOutputfile = File.createTempFile("nbs_output", ".txt"); BufferedWriter writer = new BufferedWriter(new FileWriter(templateOutputfile)); - writer.write(String.format("/give @p minecraft:note_block[minecraft:custom_name='{\"extra\":[{\"bold\":true,\"color\":\"aqua\",\"italic\":false,\"obfuscated\":false,\"strikethrough\":false,\"text\":\"Function \",\"underlined\":false},{\"bold\":false,\"color\":\"dark_aqua\",\"italic\":false,\"text":\"» \"},{\"color\":\"aqua\",\"italic\":false,\"text\":\"Nbs Song\"}],\"text\":\"\"}', minecraft:custom_data={PublicBukkitValues:{\"hypercube:codetemplatedata\":'{\"author\":\"Help Bot\",\"name\":\"&b&lFunction &3» &bNbs Song\",\"version\":1,\"code\":\"%s\"}'}}]", new String(b64))); + writer.write(String.format("/give @p minecraft:note_block[minecraft:custom_name='{\"extra\":[{\"bold\":true,\"color\":\"aqua\",\"italic\":false,\"obfuscated\":false,\"strikethrough\":false,\"text\":\"Function \",\"underlined\":false},{\"bold\":false,\"color\":\"dark_aqua\",\"italic\":false,\"text\":\"» \"},{\"color\":\"aqua\",\"italic\":false,\"text\":\"Nbs Song\"}],\"text\":\"\"}', minecraft:custom_data={PublicBukkitValues:{\"hypercube:codetemplatedata\":'{\"author\":\"Help Bot\",\"name\":\"&b&lFunction &3» &bNbs Song\",\"version\":1,\"code\":\"%s\"}'}}]", new String(b64))); writer.close();