mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 15:06:56 -09:00
Update Worldedit.js
This commit is contained in:
parent
3f2f312a97
commit
bf2ba54074
@ -22,7 +22,7 @@ ModAPI.addEventListener("lib:libcustomitems:loaded", () => {
|
|||||||
PluginAPI.dedicatedServer.appendCode(function () {
|
PluginAPI.dedicatedServer.appendCode(function () {
|
||||||
PluginAPI.addEventListener("processcommand", (event) => {
|
PluginAPI.addEventListener("processcommand", (event) => {
|
||||||
if (event.command.toLowerCase().startsWith("//wand")) {
|
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.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;
|
event.preventDefault = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user