Examples of ITradeStation


Examples of forestry.api.mail.ITradeStation

    if(stations.isEmpty())
      return;

    iterator = stations.values().iterator();
    ITradeStation previous = null;
    currentItPos = 0;

    while(iterator.hasNext()) {
      ITradeStation current = iterator.next();
      if(!current.getAddress().equals(currentTrade.address)) {
        currentItPos++;
        previous = current;
        continue;
      }
View Full Code Here

Examples of forestry.api.mail.ITradeStation

      return;

    if (address.isPlayer())
      return;

    ITradeStation station = PostManager.postRegistry.getTradeStation(world, address);
    if (station == null)
      return;

    setTradeInfo(station.getTradeInfo());
  }
View Full Code Here

Examples of forestry.api.mail.ITradeStation

    if (arguments.length <= 1)
      throw new WrongUsageException("/" + getCommandName() + " virtualize <tradestation-name>");

    World world = getWorld(sender, arguments);
    MailAddress address = new MailAddress(arguments[1]);
    ITradeStation trade = PostManager.postRegistry.getTradeStation(world, address);
    if (trade == null) {
      sendChatMessage(sender, String.format("\u00a7c" + StringUtil.localize("chat.mail.command.no_tradestation"), arguments[1]));
      return;
    }

    trade.setVirtual(!trade.isVirtual());
    sendChatMessage(sender, String.format("\u00A7aSet virtualization for '%s' to %s.", trade.getAddress().getName(), trade.isVirtual()));
  }
View Full Code Here

Examples of forestry.api.mail.ITradeStation

        continue;
      if (!str.endsWith(".dat"))
        continue;

      MailAddress address = new MailAddress(str.replace(TradeStation.SAVE_NAME, "").replace(".dat", ""));
      ITradeStation trade = PostManager.postRegistry.getTradeStation(world, address);
      if (trade == null)
        continue;

      registerTradeStation(trade);
    }
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.