Package com.andrei1058.bedwars.api
Interface BedWars.ShopUtil
- Enclosing interface:
BedWars
public static interface BedWars.ShopUtil
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateMoney
(org.bukkit.entity.Player player, org.bukkit.Material currency) Get player's money amountorg.bukkit.Material
getCurrency
(String currency) Get currency as materialorg.bukkit.ChatColor
getCurrencyColor
(org.bukkit.Material currency) getCurrencyMsgPath
(IContentTier contentTier) Cet currency pathgetRomanNumber
(int n) Get roman number for given int.void
takeMoney
(org.bukkit.entity.Player player, org.bukkit.Material currency, int amount) Take money from player on buy
-
Method Details
-
calculateMoney
int calculateMoney(org.bukkit.entity.Player player, org.bukkit.Material currency) Get player's money amount -
getCurrency
Get currency as material- Returns:
Material.AIR
if is vault.
-
getCurrencyColor
org.bukkit.ChatColor getCurrencyColor(org.bukkit.Material currency) -
getCurrencyMsgPath
Cet currency path -
getRomanNumber
Get roman number for given int. -
takeMoney
void takeMoney(org.bukkit.entity.Player player, org.bukkit.Material currency, int amount) Take money from player on buy
-