Interface PermissionHolder

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

@FunctionalInterface public interface PermissionHolder
An entity capable of holding permissions and executing commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasPermission(String permission)
    Gets whether the target holds the provided permission.
  • Method Details

    • hasPermission

      boolean hasPermission(String permission)
      Gets whether the target holds the provided permission.
      Parameters:
      permission - the permission to check
      Returns:
      if the target holds the given permission