MilkBowl/Vault — Issue #111: Please add method getMoneyName() (see description)
Author: Taien
Created: 2012-02-24 09:53:02+00:00
State: open

Unless I'm missing it, there doesn't appear to be a method currently to get the name of the money being used. For example, if I want a player to get an error message when they don't have enough money to get something, I'd like to be able to do something like:

if (!economy.has(pn,1000)) p.sendMessage(ChatColor.DARK_RED + "You don't have enough " + economy.getMoneyName() + ".");

Currently there is the economy.format() method, but that doesn't work just to return the currency name does it?

They way I do it now is manually putting my currency's name into all my plugins, but I'd like to avoid that to make my plugins more acceptable for use by a large number of servers.