Package com.forgeessentials.economy.plots.PlotManager

Examples of com.forgeessentials.economy.plots.PlotManager.Offer


        {
            Plot plot = PlotManager.plotList.get(args[0]);
            EntityPlayer seller = UserIdent.getPlayerByUuid(plot.getOwner());
            OutputHandler.chatNotification(seller, "Player " + buyer.getDisplayName() + " offered to purchase plot " + plot.getName() + " for " + args[1]
                    + ". Type /sellplot <plotName> yes to accept, /sellplot <plotName> no to deny. This offer will expire in " + PlotManager.timeout + " seconds.");
            PlotManager.pendingOffers.put(plot.getName(), new Offer(plot, buyer, seller, Integer.parseInt(args[1])));
        }
        else{
            OutputHandler.chatError(buyer, "Incorrect syntax. Try this instead: <plotName> <amount>");
        }
View Full Code Here


    @Override
    public void processCommandPlayer(EntityPlayer seller, String[] args)
    {
        if (args.length != 2)
        {
            Offer offer = PlotManager.pendingOffers.get(args[0]);

            //OutputHandler.chatError(seller, "Improper syntax. Try <plotName> <yes|no|view>");
            if (args[1].equals("view"))
            {
                OutputHandler.chatNotification(seller, "Player " + offer.buyer.getDisplayName() + " offered to purchase plot " + offer.plot.getName()
View Full Code Here

TOP

Related Classes of com.forgeessentials.economy.plots.PlotManager.Offer

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.