Package com.ranull.graves.integration
Class Vault
java.lang.Object
com.ranull.graves.integration.Vault
Provides an integration with Vault's permission system to manage player permissions.
-
Constructor Summary
ConstructorsConstructorDescriptionVault
(net.milkbowl.vault.permission.Permission permission) Deprecated.Use a central permissions adapter if available. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(org.bukkit.OfflinePlayer player, String permissionNode) Checks if anOfflinePlayer
has the specified permission.
-
Constructor Details
-
Vault
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
Checks if anOfflinePlayer
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, otherwisefalse
.
-