crwdns139725:0crwdne139725:0

crwdns156936:0:javadoc:crwdne156936:0

  • crwdns139729:0crwdne139729:0
    • crwdns156938:0crwdne156938:0

    • crwdns156940:0crwdne156940:0

crwdns156942:0crwdne156942:0

import org.spongepowered.api.command.Command;

Command.Paramertized readCmd = Command
    .builder()
    .permission("myplugin.mail.read")
    .shortDescription(Component.text("Read your inbox"))
    .executor(...)
    .build();

Command.Paramertized sendCmd = Command
    .builder()
    .permission("myplugin.mail.send")
    .shortDescription(Component.text("Send a mail"))
    .addParameter(...)
    .executor(...)
    .build();

crwdns156695:0:javadoc:crwdne156695:0

Command.Paramertized mailCommand = Command.builder()
    .permission("myplugin.mail.base")
    .shortDescription(Component.text("Send and receive mails"))
    .child(readCmd, "read", "r", "inbox")
    .child(sendCmd, "send", "s", "write")
    .build();

crwdns139739:0crwdne139739:0

crwdns156944:0:javadoc:crwdnd156944:0:javadoc:crwdne156944:0

crwdns156946:0:javadoc:crwdne156946:0

Warning

crwdns156701:0crwdne156701:0

crwdns156703:0crwdne156703:0