FIXED MASSIVE BUG WITH SAVING

This commit is contained in:
Driftay 2020-04-21 20:25:44 -04:00
parent b89db7b082
commit 8665d92476

View File

@ -184,8 +184,10 @@ public class FactionsPlugin extends MPlugin {
Metrics metrics = new Metrics(this, pluginId);
if (!preEnable()) return;
this.loadSuccessful = false;
if (!preEnable()) {
this.loadSuccessful = false;
return;
}
if (!new File(this.getDataFolder() + "/config.yml").exists()) {
this.saveResource("config.yml", false);