[Vault] Make amount of money configurable?

Discussion in 'Plugin Development' started by Musicguy, Sep 23, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Musicguy

    Hey, how would I make the amount of money that is deposited/withdrawn configurable? Example:
    Code:java
    1.  
    2. EconomyResponse r = econ.withdrawPlayer(player.getName(), 15.00);
    3.  

    I want to make the "15.00" part configurable. When I try:
    Code:java
    1.  
    2. EconomyResponse r = econ.withdrawPlayer(player.getName(), getConfig().getString("price");
    3.  

    It says: The method withdrawPlayer(String, double) in the type Economy is not applicable for the arguments (String, String)

    Thanks in advance!
     
  2. try
    getConfig().getInt(
    instead of
    getConfig().getString(
    notice, you may want to set a default number, how: find out by the javadocs
     
  3. Offline

    Musicguy

    That makes sense.
     
Thread Status:
Not open for further replies.

Share This Page