Skip to content

Commit

Permalink
Update Worldedit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays authored Sep 12, 2024
1 parent 3f2f312 commit bf2ba54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examplemods/Worldedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bf2ba54

Please sign in to comment.