I don't know what I should put into player.getAdvancementProgress(Here).
if (player.getAdvancementProgress().isDone()) {
}
Maybe someone knows something?
I don't know what I should put into player.getAdvancementProgress(Here).
if (player.getAdvancementProgress().isDone()) {
}
Maybe someone knows something?
Copyright © 2021 Jogjafile Inc.
You should use an
Advancement
object, specially the advancement that you are looking for informations.You can get it with
Bukkit.getAdvancement(NamespacedKey.fromString("advancement/name"))
where advancement/name can benether/all_potions
for example. You can get all here (column: "Resource location). If you are getting it from command, I suggest you to add tab complete.Example of TAB that show only not-done success :
Then, in the command you can do like that:
Else, if you want to get all advancements, you should use
Bukkit.advancementIterator()
.