diff --git a/modules/bukkit-command/src/main/kotlin/kr/hqservice/framework/command/argument/provider/DoubleCommandArgumentProvider.kt b/modules/bukkit-command/src/main/kotlin/kr/hqservice/framework/command/argument/provider/DoubleCommandArgumentProvider.kt index 09e0040a..1eb456cc 100644 --- a/modules/bukkit-command/src/main/kotlin/kr/hqservice/framework/command/argument/provider/DoubleCommandArgumentProvider.kt +++ b/modules/bukkit-command/src/main/kotlin/kr/hqservice/framework/command/argument/provider/DoubleCommandArgumentProvider.kt @@ -10,7 +10,7 @@ import org.bukkit.Location class DoubleCommandArgumentProvider : CommandArgumentProvider { override suspend fun cast(context: CommandContext, argument: String?): Double { argument ?: throw ArgumentFeedback.RequireArgument - return argument.toDouble() + return argument.toDoubleOrNull() ?: throw ArgumentFeedback.NotNumber } override suspend fun getTabComplete(context: CommandContext, location: Location?): List {