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 TypeMethodDescriptionbooleanhasPermission(org.bukkit.OfflinePlayer player, String permissionNode) Checks if anOfflinePlayerhas 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 anOfflinePlayerhas the specified permission.- Parameters:
player- The (possibly offline) player to check.permissionNode- The permission node to check.- Returns:
trueif the player has the specified permission, otherwisefalse.
-