Interface PlayerPermissionProvider

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 PlayerPermissionProvider
A permission provider for online players.
  • Method Summary

    Modifier and Type
    Method
    Description
    getPermissions(mindustry.gen.Player player)
    Gets the permission of the given player.
    Returns a permission provider backed by Mindustry admin permissions.
  • Method Details

    • mindustry

      static PlayerPermissionProvider mindustry()
      Returns a permission provider backed by Mindustry admin permissions.
    • getPermissions

      PermissionContainer getPermissions(mindustry.gen.Player player)
      Gets the permission of the given player.
      Parameters:
      player - the player
      Returns:
      the player's permission