Package ch.njol.skript.SkriptLogger

Examples of ch.njol.skript.SkriptLogger.SubLog


  @Override
  protected void execute(final Event e) {
    final String s = input.getSingle(e);
    if (s == null)
      return;
    final SubLog log = SkriptLogger.startSubLog();
    final Effect eff = Effect.parse(s, "can't understand this effect: '" + s + "'");
    log.stop();
    if (eff != null) {
      eff.run(e);
    } else {
      final CommandSender sender = Skript.getEventValue(e, CommandSender.class, 0);
      log.printErrors(sender == null ? Bukkit.getConsoleSender() : sender, null);
    }
  }
View Full Code Here

TOP

Related Classes of ch.njol.skript.SkriptLogger.SubLog

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.