Package uk.co.oliwali.HawkEye.callbacks

Examples of uk.co.oliwali.HawkEye.callbacks.RollbackCallback


            }

            // Create new SearchQuery
            Util.message(senderName, ChatColor.GREEN + "Starting rollback..");

            new SearchQuery(new RollbackCallback(session, RollbackType.GLOBAL), parser, SearchDir.DESC); // async rollback
            //HawkEyeAPI.performSearch(callback, parser, SearchDir.DESC);
        }catch (Exception e){
            Util.message(senderName, ChatColor.RED + "Unable to rollback player!");
            if (plugin.getConfigs().isDebug()) {
                e.printStackTrace();
View Full Code Here


    parser.dateFrom = sdf.format(cal.getTime());

    parser.parseLocations();

    //Call search function
    HawkEyeAPI.performSearch(new RollbackCallback(new PlayerSession(Bukkit.getConsoleSender()), Rollback.RollbackType.GLOBAL), parser, SearchQuery.SearchDir.DESC);


    /*
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    Calendar cal = Calendar.getInstance();
View Full Code Here

    //Set WorldEdit locations
    parser.minLoc = new Vector(region.getMinimumPoint().getX(), region.getMinimumPoint().getY(), region.getMinimumPoint().getZ());
    parser.maxLoc = new Vector(region.getMaximumPoint().getX(), region.getMaximumPoint().getY(), region.getMaximumPoint().getZ());

    //Create new SearchQuery with data
    new SearchQuery(new RollbackCallback(session, RollbackType.GLOBAL), parser, SearchDir.DESC);
    return true;

  }
View Full Code Here

      Util.sendMessage(sender, "&c" + e.getMessage());
      return true;
    }

    //Create new SearchQuery with data
    new SearchQuery(new RollbackCallback(session, RollbackType.LOCAL), parser, SearchDir.DESC);
    session.setInPreview(true);
    return true;

  }
View Full Code Here

      Util.sendMessage(sender, "&c" + e.getMessage());
      return true;
    }

    //Create new SearchQuery with data
    new SearchQuery(new RollbackCallback(session, RollbackType.GLOBAL), parser, SearchDir.DESC);
    return true;

  }
View Full Code Here

TOP

Related Classes of uk.co.oliwali.HawkEye.callbacks.RollbackCallback

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.