Class PermissionsHook

java.lang.Object
us.talabrek.ultimateskyblock.hook.PluginHook
us.talabrek.ultimateskyblock.hook.permissions.PermissionsHook
Direct Known Subclasses:
VaultPermissions

public abstract class PermissionsHook extends PluginHook
  • Constructor Details

    • PermissionsHook

      public PermissionsHook(@NotNull @NotNull uSkyBlock plugin, @NotNull @NotNull String implementing)
  • 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 Object
      perk - 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 Object
      perk - 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