Class PermissionManager


  • public final class PermissionManager
    extends java.lang.Object
    A simple class for determining whether the Player has permissions to execute certain commands.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasAdminPermissions​(org.bukkit.entity.Player player)
      Checks if the Player has Admin permissions.
      static boolean hasCreatorPermissions​(org.bukkit.entity.Player player)
      Checks if the Player has Creator permissions.
      static boolean hasPlayerPermissions​(org.bukkit.entity.Player player)
      Checks if the Player has DbM Player permissions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PermissionManager

        public PermissionManager()
    • Method Detail

      • hasPlayerPermissions

        public static boolean hasPlayerPermissions​(org.bukkit.entity.Player player)
        Checks if the Player has DbM Player permissions.
        Parameters:
        player - The Player
        Returns:
        True if they have them.
      • hasCreatorPermissions

        public static boolean hasCreatorPermissions​(org.bukkit.entity.Player player)
        Checks if the Player has Creator permissions.
        Parameters:
        player - The Player
        Returns:
        True if they have them.
      • hasAdminPermissions

        public static boolean hasAdminPermissions​(org.bukkit.entity.Player player)
        Checks if the Player has Admin permissions.
        Parameters:
        player - The Player
        Returns:
        True if they have them.