diff options
author | nea <nea@nea.moe> | 2023-06-03 20:01:32 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-03 20:01:32 +0200 |
commit | 85c9e522c544b7f1d3f7161c53c7c6371c1e20f2 (patch) | |
tree | c8d1e3cd2257d6d1a3ecbfc7f603e9f155549f6d /src | |
parent | 3c437efa12d536cdc347895b3e37bc3f5acc0193 (diff) | |
download | firmament-85c9e522c544b7f1d3f7161c53c7c6371c1e20f2.tar.gz firmament-85c9e522c544b7f1d3f7161c53c7c6371c1e20f2.tar.bz2 firmament-85c9e522c544b7f1d3f7161c53c7c6371c1e20f2.zip |
Dont suggest NPCs for pv lookup
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/commands/rome.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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)) } |