From fb5a23188dfc6d5ac5aa9b0ac02d07c2f67d4500 Mon Sep 17 00:00:00 2001 From: Boy Date: Mon, 3 Oct 2022 11:46:22 +0200 Subject: [PATCH] fix config typo --- .../kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt | 2 +- .../kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt index 6f3e106..fed1fdc 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt @@ -39,7 +39,7 @@ class DeeperCommandExecutor : IdofrontCommandExecutor(), TabCompleter { ("deeperworld" / "dw") { "reload" { action { - deeperWorld.config = config("config.yml") { deeperWorld.fromPluginPath(loadDefault = true)} + deeperWorld.config = config("config") { deeperWorld.fromPluginPath(loadDefault = true)} } } "tp"(desc = "Enables or disables automatic teleports between sections for a player") { diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt index 0d27827..ba31b25 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt @@ -33,7 +33,7 @@ class DeeperWorldPlugin : JavaPlugin() { } override fun onEnable() { - config = config("config.yml") { fromPluginPath(loadDefault = true)} + config = config("config") { fromPluginPath(loadDefault = true)} service(WorldManagerImpl()) service(PlayerManagerImpl())