Use the correct config value for cost-to-open

This commit changes payToOpen to use the correct value from the config as well as the default value listed in the config instead of
the default value for payToCreate.
This commit is contained in:
evilmidget38
2014-08-13 20:51:48 -06:00
parent 8555d1f768
commit 9741c80014
@@ -49,7 +49,7 @@ public class EconomyOperations {
if (UUIDVaultManager.getInstance().vaultExists(player.getUniqueId(), number)) {
return payToCreate(player);
} else {
double cost = BUKKIT_CONFIG.getDouble("economy.cost-to-create", 100);
double cost = BUKKIT_CONFIG.getDouble("economy.cost-to-open", 10);
EconomyResponse resp = PlayerVaults.getInstance().getEconomy().withdrawPlayer(player.getName(), cost);
if (resp.transactionSuccess()) {
player.sendMessage(Lang.TITLE.toString() + Lang.COST_TO_OPEN.toString().replaceAll("%price", "" + cost));