Package uk.co.oliwali.HawkEye

Examples of uk.co.oliwali.HawkEye.SearchParser


        if (session.doingRollback()){
            Util.message(senderName, ChatColor.RED + "Unable to rollback player! You already have a rollback processing!");
            return false;
        }

        SearchParser parser = null;

        try {
            parser = new SearchParser();
            parser.players.add(target);
            parser.worlds = worlds;

            if (plugin.getConfigs().getBackDaysAgo() > 0){
                Calendar cal = Calendar.getInstance();
View Full Code Here


      Util.sendMessage(sender, "&cPlease complete your selection before doing a &7WorldEdit&c rollback!");
      return true;
    }

    //Parse arguments
    SearchParser parser = null;
    try {

      parser = new SearchParser(player, args);

      //Check that supplied actions can rollback
      if (parser.actions.size() > 0) {
        for (DataType type : parser.actions)
          if (!type.canRollback()) throw new IllegalArgumentException("You cannot rollback that action type: &7" + type.getConfigName());
View Full Code Here

      Util.sendMessage(sender, "&cYou already have a query command processing!");
      return true;
    }

    //Parse arguments
    SearchParser parser = null;
    try {

      parser = new SearchParser(player, args);
      parser.loc = null;

      //Check that supplied actions can rollback
      if (parser.actions.size() > 0) {
        for (DataType type : parser.actions)
View Full Code Here

  @Override
  public boolean execute() {

    //Parse arguments
    SearchParser parser = null;
    try {
      parser = new SearchParser(sender, args);
    } catch (IllegalArgumentException e) {
      Util.sendMessage(sender, "&c" + e.getMessage());
      return true;
    }
View Full Code Here

      Util.sendMessage(sender, "&cYou already have a rollback command processing!");
      return true;
    }

    //Parse arguments
    SearchParser parser = null;
    try {

      parser = new SearchParser(player, args);
      parser.loc = null;

      //Check that supplied actions can rollback
      if (parser.actions.size() > 0) {
        for (DataType type : parser.actions)
View Full Code Here

      Util.sendMessage(sender, "&cYou already have a rollback command processing!");
      return true;
    }

    //Parse arguments
    SearchParser parser = null;
    try {

      parser = new SearchParser(player, args);
      parser.loc = null;

      //Check that supplied actions can rollback
      if (parser.actions.size() > 0) {
        for (DataType type : parser.actions)
View Full Code Here

  @Override
  public boolean execute() {

    //Create new parser
    SearchParser parser = null;
    try {

      //Check for valid integer
      if (args.size() != 0 && !Util.isInteger(args.get(0))) throw new IllegalArgumentException("Invalid integer supplied for radius!");
      int integer;
      if (args.size() > 0) integer = Integer.parseInt(args.get(0));
      else integer = Config.DefaultHereRadius;
      if ((integer > Config.MaxRadius && Config.MaxRadius > 0) || integer < 0)
        throw new IllegalArgumentException("Invalid radius supplied supplied!");

      //New search parser
      parser = new SearchParser(player, integer);

      //Add in DataTypes
      for (DataType type : DataType.values())
        if (type.canHere()) parser.actions.add(type);
View Full Code Here

  @Override
  public boolean execute() {

    //Parse arguments
    SearchParser parser = null;
    try {
      parser = new SearchParser(sender, args);
    } catch (IllegalArgumentException e) {
      Util.sendMessage(sender, "&c" + e.getMessage());
      return true;
    }
View Full Code Here

TOP

Related Classes of uk.co.oliwali.HawkEye.SearchParser

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.