PlayerAdvancements
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
award(advancement as AdvancementHolder, criteria as string) as bool
Awards an advancement to the player.
Returns: Whether the advancement was awarded.
Parameters:
criteria: string
Type: string
- The criteria to award.
Return Type:
bool
flushDirty(player as ServerPlayer)
Updates the advancements on the client
Parameters:
getOrStartProgress(advancement as AdvancementHolder) as AdvancementProgress
Gets the progress of an advancement.
Returns: The progress of the advancement.
Parameters:
Return Type:
AdvancementProgress
revoke(advancement as AdvancementHolder, criteria as string) as bool
Revokes an advancement from the player.
Returns: Whether the advancement was revoked.
Parameters:
criteria: string
Type: string
- The criteria to revoke.
Return Type:
bool