Package org.melonbrew.fe.database

Examples of org.melonbrew.fe.database.Account.withdraw()


            return true;
        }

        String formattedMoney = plugin.getAPI().format(money);

        victim.withdraw(money);

        Phrase.PLAYER_DEDUCT_MONEY.sendWithPrefix(sender, formattedMoney, victim.getName());

        Player receiverPlayer = plugin.getServer().getPlayerExact(victim.getName());
View Full Code Here


            return true;
        }

        String formattedMoney = plugin.getAPI().format(money);

        account.withdraw(money);

        receiver.deposit(money);

        Phrase.MONEY_SENT.sendWithPrefix(sender, formattedMoney, receiver.getName());
View Full Code Here

        if (account == null) {
            return new EconomyResponse(0, 0, ResponseType.FAILURE, "Account doesn't exist");
        }

        if (account.has(amount)) {
            account.withdraw(amount);

            return new EconomyResponse(amount, account.getMoney(), ResponseType.SUCCESS, "");
        } else {
            return new EconomyResponse(0, account.getMoney(), ResponseType.FAILURE, "Insufficient funds");
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.