Examples of printLog()


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

      for (final Class<? extends T> c : types) {
        log.clear();
        assert c != null;
        final T t = Classes.parse(expr, c, context);
        if (t != null) {
          log.printLog();
          return new SimpleLiteral<T>(t, false);
        }
      }
      log.printError();
      return null;
View Full Code Here

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

          log.printErrors();
          return false;
        }
        this.third = third = e;
      }
      log.printLog();
    } finally {
      log.stop();
    }
   
    final Class<?> f = first.getReturnType(), s = third == null ? second.getReturnType() : Utils.getSuperType(second.getReturnType(), third.getReturnType());
View Full Code Here

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

              loopedExpr = loopedExpr.getConvertedExpression(Object.class);
            if (loopedExpr == null) {
              h.printErrors("Can't understand this loop: '" + name + "'");
              continue;
            }
            h.printLog();
          } finally {
            h.stop();
          }
          if (loopedExpr.isSingle()) {
            Skript.error("Can't loop " + loopedExpr + " because it's only a single value");
View Full Code Here

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

            Skript.error("The function '" + functionName + "' was redefined with different, incompatible arguments, but is still used in other script(s). These will continue to use the old version of the function.");
          return false;
        }
        parameters[i] = e;
      } finally {
        log.printLog();
      }
    }
   
    function = (Function<? extends T>) newFunc;
    Functions.registerCaller(this);
View Full Code Here

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

        }
        if (d == null) {
          log.printErrors("'" + def + "' is not " + type.getName().withIndefiniteArticle());
          return null;
        }
        log.printLog();
      } finally {
        log.stop();
      }
//      }
    }
View Full Code Here

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

                  }
                }
                string.add(i);
              }
            }
            log.printLog();
          } finally {
            log.stop();
          }
        }
        c = s.indexOf('%', c2 + 1);
View Full Code Here

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

        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);
          e.run(new EffectCommandEvent(sender, command));
View Full Code Here

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

          d = new SkriptParser("" + def.substring(1, def.length() - 1), SkriptParser.PARSE_EXPRESSIONS, ParseContext.COMMAND).parseExpression(type.getC());
          if (d == null) {
            log.printErrors("Can't understand this expression: " + def + "");
            return null;
          }
          log.printLog();
        } finally {
          log.stop();
        }
      } else {
        final RetainingLogHandler log = SkriptLogger.startRetainingLog();
View Full Code Here

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

          }
          if (d == null) {
            log.printErrors("Can't understand this expression: '" + def + "'");
            return null;
          }
          log.printLog();
        } finally {
          log.stop();
        }
      }
    }
View Full Code Here

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

    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;
        }
      }
      final EntityData<?> type = EntityData.parseWithoutIndefiniteArticle("" + parseResult.regexes.get(0).group());
      log.clear();
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.