I have been scouring the forums for at least a couple of days now and was trying to find a plugin that can disable the hunger bar and also disable any fall damage. Does anyone know of a current plugin that can do this? Thanks in advance for any help.
By listening to damage events and telling which type it is.
@Listener
public void onDamage(EntityDamageEvent event){
//For just players use this along with below.
if(!event.getEntityType().equals(EntityTypes.PLAYER)) return;
//Everyone
if(!event.getCause().equals(EntityDamageEvent.DamageCause.FALL)) return;
event.setCancelled(true);
}
As far as removing the hunger bar, i have no clue without mods.