Commands
Overview
/health // This is a command
/health set 50; // This is a command and its syntax
set // This is a literal argument
~ ~ ~ // This is a position argument Create your first command
package demo.commands;
import net.minestom.server.command.builder.Command;
public class TestCommand extends Command {
public TestCommand() {
super("my-command", "hey");
// "my-command" is the main name of the command
// "hey" is an alias, you can have an unlimited number of those
}
}
Argument callback

Command data
Last updated
Was this helpful?
