Simply call the appropriate death logic rather than using Bukkit.getServer().callEvent().
This is related to #522, because this can be done during that restructure.
Reason for Redesign
The constructors for PlayerDeathEvent are marked as @APIStatus.Internal, meaning they are meant only to be used internally in the API, not directly by me. Also, the calling of the event simply results in extra filtering and an unnecessary cancelling of the event.
Definition of Done
[ ] No instances of PlayerDeathEvent are being manually thrown by my in my application
Description
Simply call the appropriate death logic rather than using
Bukkit.getServer().callEvent()
.This is related to #522, because this can be done during that restructure.
Reason for Redesign
The constructors for
PlayerDeathEvent
are marked as@APIStatus.Internal
, meaning they are meant only to be used internally in the API, not directly by me. Also, the calling of the event simply results in extra filtering and an unnecessary cancelling of the event.Definition of Done
PlayerDeathEvent
are being manually thrown by my in my applicationRelated Issues
522