Package ch.njol.skript.log

Examples of ch.njol.skript.log.RetainingLogHandler.printErrors()


    final RetainingLogHandler log = SkriptLogger.startRetainingLog();
    final Expression<?> v;
    try {
      v = exprs[0].getConvertedExpression(rt.getC());
      if (v == null) {
        log.printErrors("This function is declared to return " + rt.getName().withIndefiniteArticle() + ", but " + exprs[0].toString(null, false) + " is not of that type.");
        return false;
      }
      log.printLog();
    } finally {
      log.stop();
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.