Skip to content

Commit 367a851

Browse files
committed
configure-essentials command incorrect behavior fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 538864e commit 367a851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/core/impl/commands/ConfigureEssentialsCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ object ConfigureEssentialsCommand : CommandBase(
128128
}
129129

130130
private fun validateArguments(setting: String, value: String) =
131-
generalConfiguration.take().keys.filter { it as String == setting }.count() > 1 &&
131+
generalConfiguration.take().keys.filter { it as String == setting }.count() > 0 &&
132132
value.isNotBlank() && !Regex("[=|:@$^*]").containsMatchIn(value)
133133
}

0 commit comments

Comments
 (0)