mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-18 23:27:44 +01:00
Check that death event damager is not null, fixes #913
This commit is contained in:
parent
0af81d81d1
commit
7cdfdc0548
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user