Package com.fernferret.allpay.commons

Examples of com.fernferret.allpay.commons.GenericBank


                    } else {
                        plugin.getVaultHandler().getEconomy().withdrawPlayer(teleporterPlayer.getName(), toWorld.getPrice());
                    }
                }
            } else {
                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());
                    }
                }
            }
        }
        return true;
View Full Code Here

TOP

Related Classes of com.fernferret.allpay.commons.GenericBank

Copyright © 2018 www.massapicom. 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.