diff --git a/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java b/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java index d585dca..9cb62ce 100644 --- a/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java +++ b/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java @@ -9,6 +9,7 @@ import net.knarcraft.blacksmith.listener.PlayerListener; import net.knarcraft.blacksmith.manager.EconomyManager; import net.knarcraft.blacksmith.trait.BlacksmithTrait; import org.bukkit.command.PluginCommand; +import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; @@ -56,6 +57,10 @@ public class BlacksmithPlugin extends JavaPlugin { public void onEnable() { instance = this; + FileConfiguration fileConfiguration = this.getConfig(); + this.saveDefaultConfig(); + fileConfiguration.options().copyDefaults(true); + //Load settings config = new GlobalSettings(this); config.load();