Update PlayerAdvancementDoneEvent.java - #12272
Conversation
|
Hey, For this to actually have any effect you would also need to change the server code. |
|
Is there any specific reason you would like for this event to be cancellable? PlayerAdvancementCriterionGrantEvent, which is fired right before the PlayerAdvancementDoneEvent already allows cancellation. |
For more flexible advancement management. |
|
I mean i am not 100 % against making it cancellable. Just saying there is already a way to do it (which is more flexible than the PlayerAdvancementDoneEvent since its called not only for done advancements) |
Where? |
please use our discord for help regarding contributing. You have to find where PlayerAdvancementDoneEvent is currently being called and find a way to nicely implement it |
|
I don't think that such an event being cancellable makes sense; You've already got all the criteria and are considered by everything to have "won" the advancement, this just seems like it would moreso be just disabling the side-effect triggers of that? |
|
Given whats been said above, is there anything you would like to add to that or can we close this PR? |
No. You can close. |
PlayerAdvancementDoneEvent can be cancelled.