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