Interface CommandPermission

All Known Implementing Classes:
BukkitCommandPermission, BungeeCommandPermission, JDAPermission, SpongeCommandPermission, VelocityCommandPermission

public interface CommandPermission
Represents a permission that is required in order to execute a command.

This implementation may vary depending on the target platform

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CommandPermission
    A CommandPermission that returns true for any sender.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canExecute(@NotNull CommandActor actor)
    Returns whether the sender has permission to use this command or not.
  • Field Details

  • Method Details

    • canExecute

      boolean canExecute(@NotNull @NotNull CommandActor actor)
      Returns whether the sender has permission to use this command or not.
      Parameters:
      actor - Actor to test against
      Returns:
      true if they can use it, false if otherwise.