Examples of CheckType


Examples of fr.neatmonster.nocheatplus.checks.CheckType

            if (checkType == CheckType.ALL) {
                // Not sure this is really good, though.
                rmd.removeAllData();
            }
            else if (rmd instanceof IHaveCheckType) {
                final CheckType refType = ((IHaveCheckType) rmd).getCheckType();
                if (refType == checkType || APIUtils.isParent(checkType, refType)) {
                    rmd.removeAllData();
                }
            }
        }
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

                if (rmd.removeData(PlayerName) != null) {
                    removed = true;
                }
            }
            else if (rmd instanceof IHaveCheckType) {
                final CheckType refType = ((IHaveCheckType) rmd).getCheckType();
                if (refType == checkType || APIUtils.isParent(checkType, refType)) {
                    if (rmd.removeData(PlayerName) != null) {
                        removed = true;
                    }
                }
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

  public boolean onCommand(CommandSender sender, Command command,
      String label, String[] args) {
    // TODO: Reduce copy and paste by introducing some super class.
    if (args.length < 2 || args.length > 3) return false;
    String playerName = args[1];
    final CheckType checkType;
    if (args.length == 3){
      try{
        checkType = CheckType.valueOf(args[2].toUpperCase().replace('-', '_').replace('.', '_'));
      } catch (Exception e){
        sender.sendMessage(TAG + "Could not interpret: " + args[2]);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

  public boolean onCommand(CommandSender sender, Command command,
      String label, String[] args) {
    // TODO: Reduce copy and paste by introducing some super class.
    if (args.length < 2 || args.length > 3) return false;
    String playerName = args[1];
    final CheckType checkType;
    if (args.length == 3){
      try{
        checkType = CheckType.valueOf(args[2].toUpperCase().replace('-', '_').replace('.', '_'));
      } catch (Exception e){
        sender.sendMessage(TAG + "Could not interpret: " + args[2]);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

     * @return true, if is parent
     */
    public static final boolean isParent(final CheckType supposedParent, final CheckType supposedChild) {
      if (supposedParent == supposedChild) return false;
      else if (supposedParent == CheckType.ALL) return true;
        CheckType parent = supposedChild.getParent();
        while (parent != null)
            if (parent == supposedParent)
                return true;
            else
                parent = parent.getParent();
        return false;
    }
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

     * @return if we should cancel the VL processing
     */
    public static final boolean shouldCancelVLProcessing(final ViolationData violationData) {
        // Checks for hooks registered for this event, parent groups or ALL will be inserted into the list.
        // Return true as soon as one hook returns true. Test hooks, if present.
      final CheckType type = violationData.check.getType();
        final List<NCPHook> hooksCheck = hooksByChecks.get(type);
        if (!hooksCheck.isEmpty()){
          if (APIUtils.needsSynchronization(type)){
            synchronized (hooksCheck) {
              return applyHooks(type, violationData.player, violationData, hooksCheck);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

  @Override
  public boolean onCommand(CommandSender sender, Command command,
      String label, String[] args) {
    if (args.length < 2 || args.length > 3) return false;
    String playerName = args[1];
    final CheckType checkType;
    if (args.length == 3){
      try{
        checkType = CheckType.valueOf(args[2].toUpperCase().replace('-', '_').replace('.', '_'));
      } catch (Exception e){
        sender.sendMessage(TAG + "Could not interpret: " + args[2]);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

            n = 10000;
        }
       
        Set<CheckType> checkTypes = new LinkedHashSet<CheckType>();
        for (int i = startIndex; i < args.length; i ++) {
            CheckType type = null;
            try {
                type = CheckType.valueOf(args[i].trim().toUpperCase().replace('-', '_').replace('.', '_'));
            } catch (Throwable t) {} // ...
            if (type != null) {
                checkTypes.addAll(APIUtils.getWithChildren(type)); // Includes type.
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.CheckType

       
        @Override
        public void run() {
            final Iterator<CheckType> it = checkTypes.iterator();
            List<VLView> views = null;
            CheckType type = null;
            while (it.hasNext()) {
                type = it.next();
                it.remove();
                views = ViolationHistory.getView(type);
                if (views.isEmpty()) {
View Full Code Here

Examples of gov.nist.checklists.xccdf.x11.CheckType

        }

        do {
            XmlObject xmlObject = cursor.getObject();
            if (xmlObject instanceof CheckType) {
              CheckType checkType = (CheckType)xmlObject;

            if (checkType.isSetCheckContent()) {
              throw new ComplexCheckException(CheckedItem.Result.NOTCHECKED,
                  "In-line check content not supported");
            }

            XCCDFCheck check = RuleImpl.newCheck(document, checkType);
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.