mirror of https://github.com/kami-blue/client
[fix] UUID request spam
This commit is contained in:
parent
d0f54cf435
commit
7a3cb505a8
|
@ -1 +1 @@
|
|||
Subproject commit 3354e4fde4aa0d37eb7d8c25324a65d3538f4289
|
||||
Subproject commit c9be6984ec7f6aba0dcf0b5ea3abe3d1004e4ee6
|
|
@ -148,6 +148,10 @@ class PlayerArg(
|
|||
override val name: String
|
||||
) : AbstractArg<PlayerProfile>(), AutoComplete by DynamicPrefixMatch(::playerInfoMap) {
|
||||
|
||||
override suspend fun checkType(string: String?): Boolean {
|
||||
return !string.isNullOrBlank()
|
||||
}
|
||||
|
||||
override suspend fun convertToType(string: String?): PlayerProfile? {
|
||||
return UUIDManager.getByString(string)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue