Package simpleserver.Coordinate

Examples of simpleserver.Coordinate.Dimension


    super("dimension [DIMENSION] MESSAGE", "Send message only in specified dimension and to yourself");
  }

  @Override
  protected Chat getMessageInstance(Player sender, String rawMessage) {
    Dimension dim = sender.getDimension();
    chatMessage = rawMessage;

    String[] arguments = extractArguments(rawMessage);
    if (arguments.length > 1 && Dimension.get(arguments[0]) != Dimension.LIMBO) {
      dim = Dimension.get(arguments[0]);
View Full Code Here


    String mode = args[0].toLowerCase();
    if (mode.equals("global")) {
      player.setChat(new GlobalChat(player));
    } else if (mode.equals("dimension")) {

      Dimension dim = player.getDimension();

      if (args.length > 1 && Dimension.get(args[1]) != Dimension.LIMBO) {
        dim = Dimension.get(args[1]);
      }
      player.setChat(new DimensionChat(player, dim));
View Full Code Here

      start = new Coordinate(getInt(coords[0]), getInt(coords[1]), getInt(coords[2]));
    } else {
      throw new SAXException("Invalid coordinate: " + parts[0]);
    }

    Dimension dimension = (parts.length >= 2) ? Dimension.get(parts[1]) : Dimension.EARTH;

    parts = attributes.getValue("end").split(";");
    coords = parts[0].split(",");
    Coordinate end;
    if (coords.length == 2) {
View Full Code Here

    String[] tokens = line.split(",");
    if (tokens.length >= 5) {
      int x;
      byte y;
      int z;
      Dimension dimension = Dimension.EARTH;
      String name;
      try {
        x = Integer.parseInt(tokens[2]);
        y = Byte.parseByte(tokens[3]);
        z = Integer.parseInt(tokens[4]);
View Full Code Here

TOP

Related Classes of simpleserver.Coordinate.Dimension

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.