Player Death Event
Thrown whenever getClassById Player dies
Constructors
Link copied to clipboard
public void PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, String deathMessage)
public void PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage)
public void PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean keepInventory
Link copied to clipboard
public int newTotalExp
Functions
Link copied to clipboard
Get the death message that will appear to everyone on the server.
Link copied to clipboard
Gets how much EXP should be dropped from this death.
Link copied to clipboard
Gets the EntityType of the Entity involved in this event.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets if the Player keeps inventory on death.
Link copied to clipboard
Gets if the Player should keep all EXP at respawn.
Link copied to clipboard
Gets the Level the Player should have at respawn.
Link copied to clipboard
Gets the Total EXP the Player should have at respawn.
Link copied to clipboard
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
Set the death message that will appear to everyone on the server.
Link copied to clipboard
Sets how much EXP should be dropped from this death.
Link copied to clipboard
Sets if the Player keeps inventory on death.
Link copied to clipboard
Sets if the Player should keep all EXP at respawn.
Link copied to clipboard
Sets the Level the Player should have at respawn.
Link copied to clipboard
Sets the Total EXP the Player should have at respawn.