final Date start = new Date();
final ScriptInfo i;
final ErrorDescLogHandler h = SkriptLogger.startLogHandler(new ErrorDescLogHandler(null, null, m_no_errors.toString()));
try {
Language.setUseLocal(false);
i = loadScripts(scriptsFolder);
synchronized (loadedScripts) {
loadedScripts.add(i);
}
} finally {
Language.setUseLocal(true);
h.stop();
}
if (i.files == 0)
Skript.warning(m_no_scripts.toString());
if (Skript.logNormal() && i.files > 0)