112113114115116117118119120121122
if (databases == null || !(databases instanceof SectionNode)) { Skript.error("The config is missing the required 'databases' section that defines where the variables are saved"); return false; } Skript.closeOnDisable(new Closeable() { @Override public void close() { Variables.close(); } });