Class PermissionsHook
java.lang.Object
us.talabrek.ultimateskyblock.hook.PluginHook
us.talabrek.ultimateskyblock.hook.permissions.PermissionsHook
- Direct Known Subclasses:
VaultPermissions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
addPermission
(@NotNull org.bukkit.entity.Player player, @NotNull String perk) Add permission to a player ONLY for the world the player is currently on.boolean
hasPermission
(@NotNull org.bukkit.entity.Player player, @NotNull String perk) Gets the value of the specified permission, if set.abstract boolean
removePermission
(@NotNull org.bukkit.entity.Player player, @NotNull String perk) Remove permission from a player.Methods inherited from class us.talabrek.ultimateskyblock.hook.PluginHook
getHookName, getImplementing, onHook, onUnhook
-
Constructor Details
-
PermissionsHook
-
-
Method Details
-
addPermission
public abstract boolean addPermission(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String perk) Add permission to a player ONLY for the world the player is currently on. This is a world-specific operation.- Parameters:
player
- Player Objectperk
- Permission node- Returns:
- Success or Failure
-
removePermission
public abstract boolean removePermission(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String perk) Remove permission from a player. This is a world-specific operation.- Parameters:
player
- Player Objectperk
- Permission node- Returns:
- Success or Failure
-
hasPermission
public boolean hasPermission(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String perk) Gets the value of the specified permission, if set. If a permission override is not set on this object, the default value of the permission will be returned.- Parameters:
perk
- Name of the permission- Returns:
- Value of the permission
-