diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt index 440a425..8801f8c 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommandExecutor.kt @@ -33,7 +33,7 @@ import org.bukkit.command.Command import org.bukkit.command.CommandSender import org.bukkit.command.TabCompleter -object DeeperCommandExecutor : IdofrontCommandExecutor(), TabCompleter { +class DeeperCommandExecutor : IdofrontCommandExecutor(), TabCompleter { override val commands: CommandHolder = commands(deeperWorld) { ("deeperworld" / "dw") { "tp"(desc = "Enables or disables automatic teleports between sections for a player") { @@ -180,11 +180,6 @@ object DeeperCommandExecutor : IdofrontCommandExecutor(), TabCompleter { } } } - "linfo"{ - playerAction { - sender.error("Please use /dw linfo or /deeperworld layerinfo instead") - } - } } override fun onTabComplete( @@ -203,6 +198,7 @@ object DeeperCommandExecutor : IdofrontCommandExecutor(), TabCompleter { 2 -> { when (args[0]) { "tp" -> listOf("on", "off") + "time" -> listOf("set", "add") else -> listOf() } } diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt index c806582..38b7145 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/DeeperWorldPlugin.kt @@ -45,7 +45,7 @@ class DeeperWorldPlugin : JavaPlugin() { ) //register command executor - DeeperCommandExecutor + DeeperCommandExecutor() // Initialize falling damage task if (DeeperConfig.data.fall.maxSafeDist >= 0f && DeeperConfig.data.fall.fallDistanceDamageScaler >= 0.0) { diff --git a/src/test/kotlin/com/derongan/minecraft/deeperworld/world/RegionTestU.kt b/src/test/kotlin/com/mineinabyss/deeperworld/world/RegionTestU.kt similarity index 100% rename from src/test/kotlin/com/derongan/minecraft/deeperworld/world/RegionTestU.kt rename to src/test/kotlin/com/mineinabyss/deeperworld/world/RegionTestU.kt