Package ch.njol.skript.log

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


            }
            log.clear();
            j = nextBracket(pattern, ']', '[', j + 1, true) + 1;
            res = parse_i(pattern, i, j);
            if (res == null)
              log.printError();
            else
              log.printLog();
            return res;
          } finally {
            log.stop();
View Full Code Here


                break;
              } else if (j == pattern.length() - 1) {
                throw new MalformedPatternException(pattern, "Missing closing bracket ')'");
              }
            }
            log.printError();
            return null;
          } finally {
            log.stop();
          }
        }
View Full Code Here

                  }
                  // results in useless errors most of the time
//                  Skript.error("'" + expr.substring(i, i2) + "' is " + notOfType(vi.classes), ErrorQuality.NOT_AN_EXPRESSION);
                  return null;
                } finally {
                  log2.printError();
                }
              }
            }
          } finally {
            if (!log.isStopped())
View Full Code Here

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

    }
    final ParseLogHandler log = SkriptLogger.startParseLogHandler();
    try {
      final T r = Classes.parse(v, type, ParseContext.CONFIG);
      if (r == null)
        log.printError("The entry for '" + key + "' in the database '" + databaseName + "' must be " + Classes.getSuperClassInfo(type).getName().withIndefiniteArticle());
      else
        log.printLog();
      return r;
    } finally {
      log.stop();
View Full Code Here

          getters.put(e, getter);
          hasValue = true;
        }
      }
      if (!hasValue) {
        log.printError("There's no " + Classes.getSuperClassInfo(c).getName() + " in " + Utils.a(ScriptLoader.getCurrentEventName()) + " event");
        return false;
      }
      log.printLog();
      return true;
    } finally {
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 (Statement) SkriptParser.parse(s, (Iterator) Skript.getStatements().iterator(), defaultError);
View Full Code Here

      final T e = new SkriptParser(expr).parse(source);
      if (e != null) {
        log.printLog();
        return e;
      }
      log.printError(defaultError);
      return null;
    } finally {
      log.stop();
    }
  }
View Full Code Here

      e = new SkriptParser(expr, PARSE_LITERALS).parse(source);
      if (e != null) {
        log.printLog();
        return e;
      }
      log.printError(defaultError);
      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.