Exemplo n.º 1
0
 @EventHandler
 public void onEntityCombust(EntityCombustEvent event) {
   if (event.getEntity() instanceof Zombie) {
     if (!inGameWorld(event.getEntity())) return;
     event.setCancelled(true);
   }
 }
	@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
	public void onEntityCombust(final EntityCombustEvent event)
	{
		if (event.getEntity() instanceof Player && ess.getUser(event.getEntity()).isGodModeEnabled())
		{
			event.setCancelled(true);
		}
	}