Just make the damn directory

This commit is contained in:
extendedclip 2018-08-27 00:05:51 -04:00
parent ce1ca35ee5
commit c205a9a1b9

View File

@ -44,10 +44,7 @@ public final class ExpansionManager {
plugin = instance;
File f = new File(PlaceholderAPIPlugin.getInstance().getDataFolder(), "expansions");
if (!f.exists()) {
if (!f.mkdir()) {
PlaceholderAPIPlugin.getInstance().getLogger()
.severe("Failed to create expansions folder!");
}
f.mkdirs();
}
}