public class MGPlayerDeathEvent extends MGPlayerEvent
PlayerDeathEvent
if the hooking plugin specifies
such.player
plugin
Constructor and Description |
---|
MGPlayerDeathEvent(MGPlayer player,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause,
org.bukkit.entity.Entity killer)
Creates a new instance of this event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.event.entity.EntityDamageEvent.DamageCause |
getCause()
Retrieves the cause of death (i.e.
|
org.bukkit.entity.Entity |
getKiller()
Retrieves the entity which killed the player, if applicable.
|
getPlayer
getHandlerList, getHandlers, getPlugin, uninitialize
public MGPlayerDeathEvent(MGPlayer player, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, org.bukkit.entity.Entity killer)
player
- the player who has diedcause
- the cause of death (i.e. the cause of the damage resulting
in death)killer
- the entity which killed this player (null may be used in
the event that there is nonepublic org.bukkit.event.entity.EntityDamageEvent.DamageCause getCause()
public org.bukkit.entity.Entity getKiller()