Package com.forgeessentials.economy.plots

Examples of com.forgeessentials.economy.plots.Plot.changeOwner()


            {
                OutputHandler.chatNotification(offer.buyer, "The seller agreed to sell plot " + offer.plot.getName() + " to you. " + offer.amount + " will be deducted from your wallet.");
                APIRegistry.wallet.removeFromWallet(offer.amount, offer.buyer.getPersistentID());
                APIRegistry.wallet.addToWallet(offer.amount, seller.getPersistentID());
                Plot plot = offer.plot;
                plot.changeOwner(offer.buyer.getPersistentID());
                PlotManager.addPlot(plot);
                OutputHandler.chatNotification(seller, "Transaction complete. " + offer.amount + "added to your wallet.");
                OutputHandler.chatNotification(offer.buyer, "Transaction complete. You are now owner of " + plot.getName());
                PlotManager.pendingOffers.remove(args[0]);
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.