Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809
This commit is contained in:
@@ -31,6 +31,11 @@ public class PlayerDeathEvent extends EntityDeathEvent {
|
||||
this.deathMessage = deathMessage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Player getEntity() {
|
||||
return (Player) entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the death message that will appear to everyone on the server.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user