Package ch.njol.skript.log

Examples of ch.njol.skript.log.LogEntry


   *
   * @param error
   * @param quality
   */
  public static void error(final String error, final ErrorQuality quality) {
    SkriptLogger.log(new LogEntry(SkriptLogger.SEVERE, quality, error));
  }
View Full Code Here


   
    final ParseLogHandler log = SkriptLogger.startParseLogHandler();
    try {
      final boolean ok = SkriptParser.parseArguments(rest, ScriptCommand.this, event);
      if (!ok) {
        final LogEntry e = log.getError();
        if (e != null)
          sender.sendMessage(ChatColor.DARK_RED + e.getMessage());
        sender.sendMessage(Commands.m_correct_usage + " " + usage);
        log.clear();
        log.printLog();
        return false;
      }
View Full Code Here

          for (int i = 0; i < os.length; i++)
            os[i] = plurals[i] ? r.exprs[i].getArray(null) : r.exprs[i].getSingle(null);
          return os;
        }
      }
      final LogEntry err = h.getError();
      lastError = err != null ? err.getMessage() : null;
      return null;
    } finally {
      h.clear();
      h.printLog();
    }
View Full Code Here

          log.printError();
          return null;
        }
        log.clear();
        log.printLog();
        final LogEntry e = log.getError();
        return (Literal<? extends T>) new UnparsedLiteral(expr, e != null && (error == null || e.quality > error.quality) ? e : error);
      }
      for (final Class<? extends T> c : types) {
        log.clear();
        assert c != null;
View Full Code Here

TOP

Related Classes of ch.njol.skript.log.LogEntry

Copyright © 2018 www.massapicom. 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.