@Override public void onDeath(Creature actor, Creature killer) { Player player = actor.getPlayer(); if (player == null) { return; } player.removeListener(this); _quest.notifyDeath(killer, actor, QuestState.this); }
public void removePlayerOnKillListener() { if (_onKillListener != null) { _player.removeListener(_onKillListener); } }