Dont suggest NPCs for pv lookup
This commit is contained in:
@@ -60,7 +60,9 @@ fun firmamentCommand() = literal("firmament") {
|
|||||||
ProfileViewer.onCommand(source, MC.player!!.name.unformattedString)
|
ProfileViewer.onCommand(source, MC.player!!.name.unformattedString)
|
||||||
}
|
}
|
||||||
thenArgument("name", string()) { name ->
|
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 {
|
thenExecute {
|
||||||
ProfileViewer.onCommand(source, get(name))
|
ProfileViewer.onCommand(source, get(name))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user