Interface SimpleCommand

All Superinterfaces:
io.papermc.paper.command.brigadier.BasicCommand
All Known Implementing Classes:
CommandGroup

public interface SimpleCommand extends io.papermc.paper.command.brigadier.BasicCommand
Interface for creating simple commands that extend Paper's BasicCommand. This interface provides a simplified way to create commands with automatic registration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of the command.
    default String
    usage(Boolean bool)
    Gets the usage string for this command.

    Methods inherited from interface io.papermc.paper.command.brigadier.BasicCommand

    canUse, execute, permission, suggest
  • Method Details

    • getName

      String getName()
      Gets the name of the command. This is used for command registration and execution.
      Returns:
      the command name
    • usage

      default String usage(Boolean bool)
      Gets the usage string for this command.
      Parameters:
      bool - unused parameter for compatibility
      Returns:
      the usage string for this command