Class RPEconomyAPI

java.lang.Object
br.net.fabiozumbi12.RedProtect.Bukkit.API.RPEconomyAPI

public class RPEconomyAPI extends Object
  • Constructor Details

    • RPEconomyAPI

      public RPEconomyAPI()
  • Method Details

    • SellRegion

      public static boolean SellRegion(Region region, String owner, long value)
      Put a region to sell.

      Parameters:
      region - - Region to sell.
      owner - - Owner of the region;
      value - - Value to sell this region;
      Returns:
      true if successfull sell flag. false if theres an error on sell the region and the money will return to player.
    • getRegionValue

      public static long getRegionValue(Region region)
      Get the region value based on blocks, chests, itens inside chests and item enchantements inside chests too.

      Parameters:
      region - - Region to get value.
      Returns:
      Long value of the region.