Class CommandAttributes

java.lang.Object
dev.despical.commandframework.CommandAttributes

public final class CommandAttributes extends Object
Immutable command metadata used to replace the attributes of a command that was already registered by CommandFramework.
Since:
1.6.4
Author:
Despical
  • Method Details

    • builder

      @NotNull @Contract("_ -> new") public static @NotNull CommandAttributes.Builder builder(@NotNull @NotNull Command command)
    • name

      @NotNull @Contract(pure=true) public @NotNull String name()
    • fallbackPrefix

      @NotNull @Contract(pure=true) public @NotNull String fallbackPrefix()
    • permission

      @NotNull @Contract(pure=true) public @NotNull String permission()
    • aliases

      @NotNull @Contract(pure=true) public @NotNull String[] aliases()
    • desc

      @NotNull @Contract(pure=true) public @NotNull String desc()
    • usage

      @NotNull @Contract(pure=true) public @NotNull String usage()
    • min

      @Contract(pure=true) public int min()
    • max

      @Contract(pure=true) public int max()
    • onlyOp

      @Contract(pure=true) public boolean onlyOp()
    • async

      @Contract(pure=true) public boolean async()
    • senderType

      @NotNull @Contract(pure=true) public Command.SenderType senderType()
    • toCommand

      @NotNull @Contract(pure=true) public @NotNull Command toCommand()