Ignorecase for command names

This commit is contained in:
Him188 2020-09-01 23:13:15 +08:00
parent 4b5f90f58c
commit 141613eff5

View File

@ -182,7 +182,7 @@ internal abstract class AbstractReflectionCommand @JvmOverloads constructor(
internal fun <T> Array<T>.contentEqualsOffset(other: Array<out Any>, length: Int): Boolean {
repeat(length) { index ->
if (other[index].toString() != this[index]) {
if (!other[index].toString().equals(this[index].toString(), ignoreCase = true)) {
return false
}
}