Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 02:33
· 112 commits to main since this release

Feature

  • Let custom objectives be added to init function by passing the criteria as second argument of Scoreboard.__call__ (99483fb)
Scoreboard("not_created")

Scoreboard("created", "trigger")
# scoreboard objectives add created trigger
  • Scoreboard.__call__ no longer accepts score holders as variadic arguments. Instead, use the objective's __getitem__.
a, b, c = Scoreboard("temp", "$a", "$b", "$c") # invalid

a, b, c = Scoreboard("temp")["$a", "$b", "$c"] # valid