Skip to content

Commit 5e9bf74

Browse files
committed
should not have dropped this
1 parent 81f6a43 commit 5e9bf74

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/online/umbcraft/libraries/GoldenDupes.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.bukkit.Bukkit;
99
import org.bukkit.plugin.java.JavaPlugin;
1010

11+
import java.io.File;
1112
import java.util.HashMap;
1213
import java.util.Map;
1314

@@ -23,6 +24,13 @@ public void onReloadCommand() {
2324
public void onEnable() {
2425
instance = this;
2526

27+
File configFile = new File(instance.getDataFolder(), "config.yml");
28+
29+
if (!configFile.exists()) {
30+
instance.saveDefaultConfig();
31+
return;
32+
}
33+
2634
//bStats metrics
2735
Metrics metrics = new Metrics(this, 11145);
2836

0 commit comments

Comments
 (0)