Rename CommandReceiverParameter.PARAMETER_NAME to CommandReceiverParameter.NAME

This commit is contained in:
Him188 2020-10-28 13:57:28 +08:00
parent 0078ebd68f
commit b9f70b1c66

View File

@ -104,7 +104,7 @@ public class CommandReceiverParameter<T : CommandSender>(
override val isOptional: Boolean, override val isOptional: Boolean,
override val type: KType, override val type: KType,
) : CommandParameter<T>, AbstractCommandParameter<T>() { ) : CommandParameter<T>, AbstractCommandParameter<T>() {
override val name: String get() = PARAMETER_NAME override val name: String get() = NAME
init { init {
val classifier = type.classifier val classifier = type.classifier
@ -117,7 +117,7 @@ public class CommandReceiverParameter<T : CommandSender>(
} }
public companion object { public companion object {
public const val PARAMETER_NAME: String = "<receiver>" public const val NAME: String = "<receiver>"
} }
} }