Dont suggest NPCs for pv lookup

This commit is contained in:
nea
2023-06-03 20:01:32 +02:00
parent 3c437efa12
commit 85c9e522c5

View File

@@ -60,7 +60,9 @@ fun firmamentCommand() = literal("firmament") {
ProfileViewer.onCommand(source, MC.player!!.name.unformattedString)
}
thenArgument("name", string()) { name ->
suggestsList { MC.world?.players?.map { it.name.unformattedString } ?: listOf() }
suggestsList {
MC.world?.players?.filter { it.uuid?.version() == 4 }?.map { it.name.unformattedString } ?: listOf()
}
thenExecute {
ProfileViewer.onCommand(source, get(name))
}