Interface PermissionReader

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 PermissionReader
A simple interface for getting the permissions of online players.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an empty permission reader.
    getPermission(mindustry.gen.Player player, String permission)
    Gets the permission of the given player.
  • Method Details

    • empty

      static PermissionReader empty()
      Returns an empty permission reader.
    • getPermission

      TriState getPermission(mindustry.gen.Player player, String permission)
      Gets the permission of the given player.
      Parameters:
      player - the player
      permission - the permission
      Returns:
      the permission