We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833da86 commit 6d9aabaCopy full SHA for 6d9aaba
src/main/kotlin/net/pdevita/creeperheal2/CreeperHeal2.kt
@@ -12,6 +12,7 @@ import net.pdevita.creeperheal2.utils.Stats
12
import org.bukkit.block.Block
13
import org.bukkit.entity.Entity
14
import org.bukkit.plugin.java.JavaPlugin
15
+import java.io.File
16
import java.util.*
17
18
class CreeperHeal2 : JavaPlugin() {
@@ -25,6 +26,11 @@ class CreeperHeal2 : JavaPlugin() {
25
26
27
override fun onEnable() {
28
super.onEnable()
29
+
30
+ if (!File(config.currentPath).exists()) {
31
+ saveDefaultConfig()
32
+ }
33
34
debug = config.getBoolean("debug")
35
settings = ConfigManager(this)
36
if (settings.general.bstats) {
0 commit comments