Withdraw not working!

Discussion in 'Spigot Plugin Development' started by DidactCraft, May 22, 2015.

  1. Here is all my code that I use, I'm trying to make a Bounty plugin but whenever I do the /bounty [player] it gives me the else script ("&4Error: Please contact a administrator for guidance/help")


    Would be appreciated if you could help!
  2. I believe the problem is you are depositing a negative number, instead of withdrawing a positive number. On Vault's GitHub, it says not to do this:
    Code (Text):
        public EconomyResponse depositPlayer(String playerName, double amount);

         * Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
         * @param player to deposit to
         * @param amount Amount to deposit
         * @return Detailed response of transaction
    If you don't know, there's a withdraw method you can use instead. Good luck!