Check that death event damager is not null, fixes #913

This commit is contained in:
PikaMug 2019-08-21 15:45:45 -04:00
parent 0af81d81d1
commit 7cdfdc0548

View File

@ -696,6 +696,9 @@ public class PlayerListener implements Listener {
* @since 3.1.4
*/
public void killPlayer(Entity damager, Entity target) {
if (damager == null) {
return;
}
if (!plugin.canUseQuests(damager.getUniqueId())) {
return;
}