β¨οΈCommands
Documentation/Information about creating/defining/registering/modifying/retrieving commands.
Creating a Command
Command Creation
Commands.command("broadcast", CommandTypes.commandMap())
// ...Command Information:
Commands.command("broadcast", CommandTypes.commandMap())
.info(info -> {
info.usage("Usage: /broadcast <text>");
info.aliases("bc", "bcmsg");
info.description(
"Allows the player or server to broadcast a message"
);
info.permission("admin.broadcast");
info.namespace("exampleplugin");
info.permissionMessage(
TextStyle.style("Insufficient permissions.")
);
})
// ...Command Arguments
Argument List
Custom Arguments
Requirements
Executor (Dispatcher)
Suggester/Completer
Registration
Last updated
