Commands
function build(build) {
build.registerCommand(CommandInfo.builder()
.name("command")
.aliases(["c", "cmd"])
.description("Simple example command in MCJS")
.permission("commands.command")
.target(CommandTarget.ALL)
.async(false)
.build(), function (context) {
API.message(context.getSender(), "&aHello World!");
return true;
});
}build.registerCommand(CommandInfo.builder()....name("command")
.aliases(["c", "cmd"])
.description("Simple example command in MCJS")
.permission("commands.command")
.target(CommandTarget.ALL)
.async(false)Last updated