From bf2ba54074e2317ec7a7bd78b68b21dd2ce6dd9c Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:48:51 +0330 Subject: [PATCH] Update Worldedit.js --- examplemods/Worldedit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examplemods/Worldedit.js b/examplemods/Worldedit.js index 2b1a80d..d1f4670 100644 --- a/examplemods/Worldedit.js +++ b/examplemods/Worldedit.js @@ -22,7 +22,7 @@ ModAPI.addEventListener("lib:libcustomitems:loaded", () => { PluginAPI.dedicatedServer.appendCode(function () { PluginAPI.addEventListener("processcommand", (event) => { if (event.command.toLowerCase().startsWith("//wand")) { - event.sender.sendChatMessage(ModAPI.util.str("/give @p wooden_axe 1 0 {display:{Name:"Wand",Lore:["worledit:wand"]}}")) + event.sender.sendChatMessage(ModAPI.util.str(`/give @p wooden_axe 1 0 {display:{Name:"Wand",Lore:["worledit:wand"]}}`)) event.sender.addChatMessage(ModAPI.reflect.getClassById("net.minecraft.util.ChatComponentText").constructors[0](ModAPI.util.str(prefix + "a wand has been added to your inventory"))); event.preventDefault = true; }