Interface CommandResult


public interface CommandResult
Contains the command result data of a command sender permission check.
  • Method Details

    • getClaim

      Claim getClaim()
      Gets the Claim associated with command.
      Returns:
      The claim
    • getLocation

      Object getLocation()
      Gets the command location.
      Returns:
      The command location
    • getUser

      User getUser()
      Gets the User associated with command.
      Returns:
      The user
    • getPlayerSource

      Object getPlayerSource()
      Gets the player that ran command.
      Returns:
      The player source, if available
    • getMessage

      Optional<net.kyori.adventure.text.Component> getMessage()
      Gets the result message.
      Returns:
      The result message, if available
    • isAdmin

      boolean isAdmin()
      Checks if command sender is admin.
      Returns:
      true if admin, false if not
    • successful

      boolean successful()
      Checks if command sender can run command.
      Returns:
      true if allowed, false if not