From 85c9e522c544b7f1d3f7161c53c7c6371c1e20f2 Mon Sep 17 00:00:00 2001 From: nea Date: Sat, 3 Jun 2023 20:01:32 +0200 Subject: Dont suggest NPCs for pv lookup --- src/main/kotlin/moe/nea/firmament/commands/rome.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/kotlin/moe/nea/firmament/commands/rome.kt b/src/main/kotlin/moe/nea/firmament/commands/rome.kt index 2baf076..45fabc6 100644 --- a/src/main/kotlin/moe/nea/firmament/commands/rome.kt +++ b/src/main/kotlin/moe/nea/firmament/commands/rome.kt @@ -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)) } -- cgit