Package ch.njol.skript.classes

Examples of ch.njol.skript.classes.Comparator.supportsOrdering()


    }
    @SuppressWarnings("rawtypes")
    final Comparator comp = this.comp;
    if (comp != null) {
      if (third == null) {
        if (!relation.isEqualOrInverse() && !comp.supportsOrdering()) {
          Skript.error("Can't test " + f(first) + " for being '" + relation + "' " + f(second), ErrorQuality.NOT_AN_EXPRESSION);
          return false;
        }
      } else {
        if (!comp.supportsOrdering()) {
View Full Code Here


        if (!relation.isEqualOrInverse() && !comp.supportsOrdering()) {
          Skript.error("Can't test " + f(first) + " for being '" + relation + "' " + f(second), ErrorQuality.NOT_AN_EXPRESSION);
          return false;
        }
      } else {
        if (!comp.supportsOrdering()) {
          Skript.error("Can't test " + f(first) + " for being 'between' " + f(second) + " and " + f(third), ErrorQuality.NOT_AN_EXPRESSION);
          return false;
        }
      }
    }
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.