Hello guys! Today (xd) I want to get damaged entity health. This is my code: CAN SB HELP <3 Code: @EventHandlerpublic boolean EntityDamageEvent(@NotNull Entity e, @NotNull EntityDamageEvent.DamageCause cause, double damage){ if(e instanceof Player){ }else{ e.setCustomName(e.getCustomName()); } return true; }
@stazek You copied the constructor. Listener would be this: Code: @EventHandler public void onEntityDamage(EntityDamageEvent){ // Your code here } And you can call getEntity on it.