Bukkit/Bukkit — pull request #956 by wreed12345 (2013-11-15 23:18:17+00:00)
Title: [B] Adds method PlayerDeathEvent.getPlayer() - Adds BUKKIT-4885

The Issue:
-----
PlayerDeathEvent may be thought to not have a getPlayer method and the getEntity method may be confused as something that does not in fact return the Player involved in the event.

Justification for this PR:
-----
This commit deprecates the somewhat confusing and inaccurately named method PlayerDeathEvent.getEntity() and replaces it with a more accurately names PlayerDeathEvent.getPlayer() as this method always returns a player so it should be named getPlayer() to reduce confusion.

PR Breakdown:
-
getEntity() - deprecated so still possible for un updated code and to help reduce confusion
getPlayer() - new method to replace getEntity to cause lest confusion and a more accurately named method as the getEntity method always returns a player.

Testing Results and Materials:
-
Testing using a arbitrary bukkit plugin to ensure that the code was working.

JIRA Tickets:
-
https://bukkit.atlassian.net/browse/BUKKIT-4885