Package ch.njol.skript.log

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


        ScriptLoader.setCurrentEvent("effect command", EffectCommandEvent.class);
        final Effect e = Effect.parse(command, null);
        ScriptLoader.deleteCurrentEvent();
       
        if (e != null) {
          log.clear(); // ignore warnings and stuff
          log.printLog();
         
          sender.sendMessage(ChatColor.GRAY + "executing '" + ChatColor.stripColor(command) + "'");
          if (SkriptConfig.logPlayerCommands.value() && !(sender instanceof ConsoleCommandSender))
            Skript.info(sender.getName() + " issued effect command: " + command);
View Full Code Here


  public boolean init(final Expression<?>[] exprs, final int matchedPattern, final Kleenean isDelayed, final ParseResult parseResult) {
    final RetainingLogHandler log = SkriptLogger.startRetainingLog();
    try {
      if (!StringUtils.startsWithIgnoreCase(parseResult.expr, "the ") && !StringUtils.startsWithIgnoreCase(parseResult.expr, "event-")) {
        final ItemType item = Aliases.parseItemType("" + parseResult.regexes.get(0).group());
        log.clear();
        if (item != null) {
          log.printLog();
          return false;
        }
      }
View Full Code Here

          log.printLog();
          return false;
        }
      }
      final EntityData<?> type = EntityData.parseWithoutIndefiniteArticle("" + parseResult.regexes.get(0).group());
      log.clear();
      log.printLog();
      if (type == null || type.isPlural().isTrue())
        return false;
      this.type = type;
    } finally {
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.