package org.gestern.gringotts.commands;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import static org.gestern.gringotts.Language.LANG;

/**
 * Player commands.
 */
public class MoneyExecutor extends GringottsAbstractExecutor {

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
        if (!(sender instanceof Player)) {
            sender.sendMessage(LANG.playerOnly);
            return false;
        }
        Player player = (Player) sender;

        if (args.length == 0) {
            // same as balance
            sendBalanceMessage(eco.player(player.getUniqueId()));
            return true;
        }

        String command = args[0];

        double value = 0;
        if (args.length == 2) {
            try {
                value = Double.parseDouble(args[1]);
            } catch (NumberFormatException ignored) {
                return false;
            }

            if ("withdraw".equals(command)) {
                withdraw(player, value);

                return true;
            } else if ("deposit".equals(command)) {
                deposit(player, value);

                return true;
            }
        } else if ( args.length == 3 && "pay".equals(command)) {
            // money pay <amount> <player>
            return pay(player, value, args);
        }
        return false;
    }
}

@@ -1312,32 +1312,202 @@
 als(command)) %7B%0A
+            try %7B%0A                value = Double.parseDouble(args%5B1%5D);%0A            %7D catch (NumberFormatException ignored) %7B%0A                return false;%0A            %7D%0A%0A
             // m

Fix pay command always sending 0.