Class VaultHook

java.lang.Object
studio.magemonkey.fabled.hook.VaultHook

public class VaultHook extends Object
Manages setting permissions through vault
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPermission(org.bukkit.entity.Player player, String node)
    Adds a permission to the player
    static net.milkbowl.vault.economy.EconomyResponse
    deposit(org.bukkit.entity.Player player, double amount)
     
    static double
    getBalance(org.bukkit.entity.Player player)
     
    static Boolean
    hasBalance(org.bukkit.entity.Player player, double balance)
     
    static boolean
    hasPermission(org.bukkit.entity.Player player, String node)
    Checks whether the player has the permission
    static boolean
    Checks whether the Vault reference is valid with an economy plugin
    static boolean
    Checks whether the Vault reference is valid with a permissions plugin
    static void
    removePermission(org.bukkit.entity.Player player, String node)
    Removes a permission from the player
    static net.milkbowl.vault.economy.EconomyResponse
    withdraw(org.bukkit.entity.Player player, double amount)
     

    Methods inherited from class java.lang.Object

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

    • VaultHook

      public VaultHook()
  • Method Details

    • isPermissionsValid

      public static boolean isPermissionsValid()
      Checks whether the Vault reference is valid with a permissions plugin
      Returns:
      true if valid, false otherwise
    • addPermission

      public static void addPermission(org.bukkit.entity.Player player, String node)
      Adds a permission to the player
      Parameters:
      player - player to add to
      node - permission node to add
    • removePermission

      public static void removePermission(org.bukkit.entity.Player player, String node)
      Removes a permission from the player
      Parameters:
      player - player to remove from
      node - permission node to remove
    • hasPermission

      public static boolean hasPermission(org.bukkit.entity.Player player, String node)
      Checks whether the player has the permission
      Parameters:
      player - player to check for
      node - permission node to remove
      Returns:
      true if the player has it, false otherwise
    • isEconomyValid

      public static boolean isEconomyValid()
      Checks whether the Vault reference is valid with an economy plugin
      Returns:
      true if valid, false otherwise
    • getBalance

      public static double getBalance(org.bukkit.entity.Player player)
    • hasBalance

      public static Boolean hasBalance(org.bukkit.entity.Player player, double balance)
    • withdraw

      public static net.milkbowl.vault.economy.EconomyResponse withdraw(org.bukkit.entity.Player player, double amount)
    • deposit

      public static net.milkbowl.vault.economy.EconomyResponse deposit(org.bukkit.entity.Player player, double amount)