Class PlayerPermission


  • public class PlayerPermission
    extends java.lang.Object
    A class to represent the permissions given to players and the values applied to them
    • Constructor Detail

      • PlayerPermission

        public PlayerPermission​(org.bukkit.permissions.Permission permission,
                                java.util.Map<LapisPermission,​java.lang.Integer> permissions)
        Parameters:
        permission - The Bukkit permission a player must have to be given this set of LapisPermission values
        permissions - The Map of LapisPermissions and their values for this Player Permission
    • Method Detail

      • getPermissions

        public java.util.Map<LapisPermission,​java.lang.Integer> getPermissions()
        Returns:
        Returns the map of LapisPermissions and values for this PlayerPermission
      • getPermissionValue

        public java.lang.Integer getPermissionValue​(LapisPermission lapisPermission)
        Parameters:
        lapisPermission - The permission value to return
        Returns:
        The value of the given LapisPermission for this player permission
      • getPermission

        public org.bukkit.permissions.Permission getPermission()
        Returns:
        Returns the Bukkit Permission associated with this set of LapisPermissions
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object