Skip to content

Commit

Permalink
fix: NPE with score event of Domination
Browse files Browse the repository at this point in the history
  • Loading branch information
Eredrim committed Jun 4, 2024
1 parent 7274f86 commit 6d289f5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ private void reduceLivesCheckEndAndCommit(final Arena arena, final ArenaTeam are
final int score = arena.getConfig().getInt(CFG.GOAL_DOM_TICKREWARD);
final int iLives = this.getTeamLifeMap().get(arenaTeam) - score;

// TODO: improve to handle player(s) in the radius of the newly claimed flag
final PAGoalScoreEvent gEvent = new PAGoalScoreEvent(arena, this, null, arenaTeam, (long) score);
Bukkit.getPluginManager().callEvent(gEvent);

Expand Down

0 comments on commit 6d289f5

Please sign in to comment.