Hi, when trying use an event to stop players getting hurt, nothing is happening. Here is my code: @EventHandler public void onEntityDamage(EntityDamageEvent event) { if(event.getEntity() instanceof Player){ event.setCancelled(true); } } After playing around for a minute, I have got it to work, however I don't know how to call an arraylist from another Class, how do I do this?
@Phishy You could make the ArrayList static (not recommended though, I'm sure I'm not thinking of something).