@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);
}
}