Package ch.njol.skript.log

Examples of ch.njol.skript.log.ParseLogHandler.printError()


      try {
        Expression<?> c = containers.getConvertedExpression(String.class);
        if (c == null)
          c = containers.getConvertedExpression(Inventory.class);
        if (c == null) {
          h.printError();
          return false;
        }
        containers = c;
        h.printLog();
      } finally {
View Full Code Here


              Object o;
              final ParseLogHandler log = SkriptLogger.startParseLogHandler();
              try {
                o = Classes.parseSimple(((EntryNode) n).getValue(), Object.class, ParseContext.SCRIPT);
                if (o == null) {
                  log.printError("Can't understand the value '" + ((EntryNode) n).getValue() + "'");
                  continue;
                }
                log.printLog();
              } finally {
                log.stop();
View Full Code Here

        if (t != null) {
          log.printLog();
          return t;
        }
      }
      log.printError();
    } finally {
      log.stop();
    }
    return null;
  }
View Full Code Here

              return t;
            }
          }
        }
      }
      log.printError();
    } finally {
      log.stop();
    }
    return null;
  }
View Full Code Here

      }
      if (error != null) {
        log.printLog();
        SkriptLogger.log(error);
      } else {
        log.printError();
      }
      return null;
    } finally {
      log.stop();
    }
View Full Code Here

        }
        if (v == null)
          v = ch.getConvertedExpression((Class<Object>[]) rs2);
        if (v == null) {
          if (log.hasError()) {
            log.printError();
            return false;
          }
          log.clear();
          log.printLog();
          final Class<?>[] r = new Class[rs.length];
View Full Code Here

      final EffFunctionCall f = EffFunctionCall.parse(s);
      if (f != null) {
        log.printLog();
        return f;
      } else if (log.hasError()) {
        log.printError();
        return null;
      } else {
        log.printError();
      }
    } finally {
View Full Code Here

        return f;
      } else if (log.hasError()) {
        log.printError();
        return null;
      } else {
        log.printError();
      }
    } finally {
      log.stop();
    }
    return (Effect) SkriptParser.parse(s, (Iterator) Skript.getEffects().iterator(), defaultError);
View Full Code Here

            if (res != null) {
              final SkriptEvent e = info.c.newInstance();
              final Literal<?>[] ls = Arrays.copyOf(res.exprs, res.exprs.length, Literal[].class);
              assert ls != null;
              if (!e.init(ls, i, res)) {
                log.printError();
                return null;
              }
              log.printLog();
              return new NonNullPair<SkriptEventInfo<?>, SkriptEvent>(info, e);
            }
View Full Code Here

          } catch (final IllegalAccessException e) {
            assert false;
          }
        }
      }
      log.printError(null);
      return null;
    } 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.