Skip to content

Commit

Permalink
Merge pull request #3 from RPDJF/firework-damage
Browse files Browse the repository at this point in the history
fix: Player getting damaged by fireworks on login
  • Loading branch information
RPDJF authored Jul 25, 2024
2 parents e7175f2 + f36a509 commit 158fb2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public void onPlayerChat(AsyncPlayerChatEvent event) {
@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
if (event.getEntity() instanceof Player) {
event.setCancelled(!PlayerVerificationManager.isPlayerVerified(((Player) event.getEntity()).getUniqueId()));
if (!PlayerVerificationManager.isPlayerVerified(((Player) event.getEntity()).getUniqueId())) {
event.setCancelled(true);
}
}
}

Expand Down

0 comments on commit 158fb2d

Please sign in to comment.