Plukkies Code:java @EventHandlerpublic void onDamage(EntityDamageEvent){if(e.getEntity() instanceof Player){Player p = (Player) e.getEntity();if(someList.contains(p){e.setcancelled(true); Not sure if PlayerDamageEvent works
A few steps: 1. Create a set of all UUIDs of players who should be in GodMode. (If all players should, ignore) 2. Create listeners for EntityDamageEvent and FoodLevelChangeEvent. 3. Cancel the event if the set contains the player that the event calls upon.