Skip to content
Success

Changes

Summary

  1. paper only event `player granted advancement criterion`  (#2436) (commit: 78f6ad2) (details)
Commit 78f6ad2857f12a72bbc8733413c63cbb1f873e6f by noreply
paper only event `player granted advancement criterion`  (#2436)

* Add Paper-only event `player granted advancement criteria`

* Update examples to include custom Denizen advancement

* Change name to `player granted advancement criterion`

'criteria' is the plural of 'criterion', and this event fires for a single criterion that is granted.
Thanks for information acikek! ;)

* Fix example

* Meta changes + less verbose switch inputs

* Use new Utilities method and use `tryObjectSwitch` again
(commit: 78f6ad2)
The file was addedpaper/src/main/java/com/denizenscript/denizen/paper/events/PlayerGrantedAdvancementCriterionScriptEvent.java
The file was modifiedpaper/src/main/java/com/denizenscript/denizen/paper/PaperModule.java