Skip to content

Commit bd4427d

Browse files
authored
Merge pull request #107 from ProjectDF/master
2 parents f4c50e5 + 5fde691 commit bd4427d

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun

1 file changed

+1
-2
lines changed

src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/NbsCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ public void run(CommandEvent event) {
6868
byte[] b64 = new NBSToTemplate(NBSDecoder.parse(file)).convert();
6969
File templateOutputfile = File.createTempFile("nbs_output", ".txt");
7070
BufferedWriter writer = new BufferedWriter(new FileWriter(templateOutputfile));
71-
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)));
71+
writer.write(String.format("/give @p minecraft:ender_chest[minecraft:item_name=[{text:\"» \",color:gold},{text:\"Code Template\",color:yellow,bold:1}],custom_data={PublicBukkitValues:{\"hypercube:codetemplatedata\":'{\"name\":\"&6» &e&lCode Template\",\"version\":1,\"code\":\"%s\",\"author\":\"Help Bot\"}'}}]", new String(b64)));
7272

7373
writer.close();
74-
7574

7675
EmbedBuilder embed = new EmbedBuilder()
7776
.setColor(new Color(70,199,82))

0 commit comments

Comments
 (0)