Class Vault

java.lang.Object
com.ranull.graves.integration.Vault

public final class Vault extends Object
Provides an integration with Vault's permission system to manage player permissions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vault(net.milkbowl.vault.permission.Permission permission)
    Deprecated.
    Use a central permissions adapter if available.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasPermission(org.bukkit.OfflinePlayer player, String permissionNode)
    Checks if an OfflinePlayer has the specified permission.

    Methods inherited from class java.lang.Object

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

    • Vault

      @Deprecated public Vault(net.milkbowl.vault.permission.Permission permission)
      Deprecated.
      Use a central permissions adapter if available.
      Constructs a new Vault integration instance with the specified Permission instance.
      Parameters:
      permission - The Permission instance provided by Vault.
  • Method Details

    • hasPermission

      public boolean hasPermission(org.bukkit.OfflinePlayer player, String permissionNode)
      Checks if an OfflinePlayer has the specified permission.
      Parameters:
      player - The (possibly offline) player to check.
      permissionNode - The permission node to check.
      Returns:
      true if the player has the specified permission, otherwise false.