Class RPEconomyAPI
java.lang.Object
br.net.fabiozumbi12.RedProtect.Bukkit.API.RPEconomyAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetRegionValue(Region region) Get the region value based on blocks, chests, itens inside chests and item enchantements inside chests too.static booleanSellRegion(Region region, String owner, long value) Put a region to sell.
-
Constructor Details
-
RPEconomyAPI
public RPEconomyAPI()
-
-
Method Details
-
SellRegion
Put a region to sell.- Parameters:
region- - Region to sell.owner- - Owner of the region;value- - Value to sell this region;- Returns:
trueif successfull sell flag.falseif theres an error on sell the region and the money will return to player.
-
getRegionValue
Get the region value based on blocks, chests, itens inside chests and item enchantements inside chests too.- Parameters:
region- - Region to get value.- Returns:
Longvalue of the region.
-