mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +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
|
* @since 3.1.4
|
||||||
*/
|
*/
|
||||||
public void killPlayer(Entity damager, Entity target) {
|
public void killPlayer(Entity damager, Entity target) {
|
||||||
|
if (damager == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!plugin.canUseQuests(damager.getUniqueId())) {
|
if (!plugin.canUseQuests(damager.getUniqueId())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user