File tree Expand file tree Collapse file tree
src/main/kotlin/com/lambda/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ object CommandRegistry : Config(
3232 LambdaCategory
3333), Loadable {
3434 override val priority get() = - 2
35- val prefix by setting(" prefix" , ' ;' )
35+ val prefixSetting = setting(" prefix" , ' ;' )
36+ val prefix by prefixSetting
3637
3738 val commands = getInstances<LambdaCommand >().toMutableList()
3839
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import com.lambda.brigadier.executeWithResult
2626import com.lambda.brigadier.required
2727import com.lambda.command.CommandRegistry
2828import com.lambda.command.LambdaCommand
29- import com.lambda.config.settings.CharSetting
3029import com.lambda.util.CommunicationUtils.info
3130import com.lambda.util.extension.CommandBuilder
3231import com.lambda.util.text.buildText
@@ -51,7 +50,7 @@ object PrefixCommand : LambdaCommand(
5150 }
5251 val prefixChar = prefix.first()
5352 @Suppress(" unchecked_cast" )
54- ( CommandRegistry ::prefix.getDelegate() as ? CharSetting )? .trySetValue(prefixChar)
53+ CommandRegistry .prefixSetting .trySetValue(prefixChar)
5554 return @executeWithResult success()
5655 }
5756 }
You can’t perform that action at this time.
0 commit comments