Interface BrigadierPermissionChecker<C>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @API(status=INTERNAL, since="2.0.0") public interface BrigadierPermissionChecker<C>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasPermission(@NonNull C sender, @NonNull org.incendo.cloud.permission.Permission permission)
    Returns whether the given Brigadier sender has the given permission.
  • Method Details

    • hasPermission

      boolean hasPermission(@NonNull C sender, @NonNull org.incendo.cloud.permission.Permission permission)
      Returns whether the given Brigadier sender has the given permission.
      Parameters:
      sender - the brigadier sender
      permission - the permission
      Returns:
      true if the sender has the permission, else false