Package com.fernferret.allpay.commons

Examples of com.fernferret.allpay.commons.GenericBank.give()


                GenericBank bank = plugin.getBank();
                if (!bank.hasEnough(teleporterPlayer, toWorld.getPrice(), toWorld.getCurrency(), errString)) {
                    return false;
                } else if (pay) {
                    if (toWorld.getPrice() < 0D) {
                        bank.give(teleporterPlayer, toWorld.getPrice() * -1D, toWorld.getCurrency());
                    } else {
                        bank.take(teleporterPlayer, toWorld.getPrice(), toWorld.getCurrency());
                    }
                }
            }
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.